final public function execute($action, AnCommandContext $context)
    {
        $method = '_'.AnInflector::variablize('authorize.'.$action);

        $result = self::AUTH_NOT_IMPLEMENTED;

        if (method_exists($this, $method)) {
            $this->_entity = $context->mixer;
            $this->_viewer = $context->viewer;
            $result = $this->$method($context);
        }

        return $result;
    }
final public function execute($action, AnCommandContext $context)
    {
        $method = '_'.AnInflector::variablize('authorize.'.$action);

        $result = self::AUTH_NOT_IMPLEMENTED;

        if (method_exists($this, $method)) {
            $this->_entity = $context->mixer;
            $this->_viewer = $context->viewer;
            $result = $this->$method($context);
        }

        return $result;
    }
final public function execute ( $ action , AnCommandContext $ context ) { $ method = '_' . AnInflector :: variablize ( 'authorize.' . $ action ) ; $ result = self :: AUTH_NOT_IMPLEMENTED ; if ( method_exists ( $ this , $ method ) ) { $ this -> _entity = $ context -> mixer ; $ this -> _viewer = $ context -> viewer ; $ result = $ this -> $ method ( $ context ) ; } return $ result ; }
Executes an authorization action with the passed arguments.

@param string          $name    The command name
@param AnCommandContext $context The command context

@return bool Can return both true or false.
Executes an authorization action with the passed arguments .