public function actions()
    {
        if (!isset($this->_actions)) {
            $reflection = ReflectionHelper::getClassReflection($this);
            $methods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC);
            $actions = [];
            foreach ($methods as $method) {
                $name = $method->getName();
                if ($name !== 'actions' && !$method->isStatic() && strncmp($name, 'action', 6) === 0) {
                    $actions[] = static::getActionId($name);
                }
            }
            $this->_actions = $actions;
        }
        return $this->_actions;
    }
public function actions()
    {
        if (!isset($this->_actions)) {
            $reflection = ReflectionHelper::getClassReflection($this);
            $methods = $reflection->getMethods(\ReflectionMethod::IS_PUBLIC);
            $actions = [];
            foreach ($methods as $method) {
                $name = $method->getName();
                if ($name !== 'actions' && !$method->isStatic() && strncmp($name, 'action', 6) === 0) {
                    $actions[] = static::getActionId($name);
                }
            }
            $this->_actions = $actions;
        }
        return $this->_actions;
    }
public function actions ( ) { if ( ! isset ( $ this -> _actions ) ) { $ reflection = ReflectionHelper :: getClassReflection ( $ this ) ; $ methods = $ reflection -> getMethods ( \ ReflectionMethod :: IS_PUBLIC ) ; $ actions = [ ] ; foreach ( $ methods as $ method ) { $ name = $ method -> getName ( ) ; if ( $ name !== 'actions' && ! $ method -> isStatic ( ) && strncmp ( $ name , 'action' , 6 ) === 0 ) { $ actions [ ] = static :: getActionId ( $ name ) ; } } $ this -> _actions = $ actions ; } return $ this -> _actions ; }
Get actions list
@return string[]
Get actions list