protected function _buildCommand($command)
    {
        $url = $command->receiver->getURL();

        $command->setAttribute('data-action', $command->action);
        $command->setAttribute('data-actor', $command->actor->id);

        if (!$this->_use_post && $this->getController()->getRequest()->getFormat() != 'json') {
            $url .= '&layout=list';
        }

        $command->href($url);
    }
protected function _buildCommand($command)
    {
        $url = $command->receiver->getURL();

        $command->setAttribute('data-action', $command->action);
        $command->setAttribute('data-actor', $command->actor->id);

        if (!$this->_use_post && $this->getController()->getRequest()->getFormat() != 'json') {
            $url .= '&layout=list';
        }

        $command->href($url);
    }
protected function _buildCommand ( $ command ) { $ url = $ command -> receiver -> getURL ( ) ; $ command -> setAttribute ( 'data-action' , $ command -> action ) ; $ command -> setAttribute ( 'data-actor' , $ command -> actor -> id ) ; if ( ! $ this -> _use_post && $ this -> getController ( ) -> getRequest ( ) -> getFormat ( ) != 'json' ) { $ url .= '&layout=list' ; } $ command -> href ( $ url ) ; }
Method to build a command.

@param LibBaseTemplateObject $command The action object
Method to build a command .