protected function _commandLogout(Library\ControllerToolbarCommand $command) { $controller = $this->getController(); $session = $controller->getUser()->getSession(); $url = 'option=com_users&view=session&id=' . $session->getId(); $url = $controller->getView()->getRoute($url); //Form configuration $config = "{method:'post', url:'" . $url . "', params:{_action:'delete', _token:'" . $session->getToken() . "'}}"; $command->append(array('attribs' => array('onclick' => 'new Koowa.Form(' . $config . ').submit();', 'data-action' => 'delete'))); }
protected function _commandRestore(Library\ControllerToolbarCommand $command) { $command->append(array('attribs' => array('data-action' => 'edit'))); }
protected function _commandDelete(Library\ControllerToolbarCommand $command) { $command->append(array('attribs' => array('label' => 'Delete forever', 'data-action' => 'delete'))); }
protected function _commandPurge(Library\ControllerToolbarCommand $command) { $command->append(array('attribs' => array('data-novalidate' => 'novalidate', 'data-action' => 'purge'))); }