public function getAction($name, $need = TRUE)
    {
        return $this->hasActions()
            ? $this->getComponent(Action::ID)->getComponent($name, $need)
            : NULL;
    }
public function getAction($name, $need = TRUE)
    {
        return $this->hasActions()
            ? $this->getComponent(Action::ID)->getComponent($name, $need)
            : NULL;
    }
public function getAction ( $ name , $ need = TRUE ) { return $ this -> hasActions ( ) ? $ this -> getComponent ( Action :: ID ) -> getComponent ( $ name , $ need ) : NULL ; }
Returns action component.
@param string $name
@param bool $need
@return Action
Returns action component .