Пример #1
0
 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')));
 }
Пример #2
0
 protected function _commandRestore(Library\ControllerToolbarCommand $command)
 {
     $command->append(array('attribs' => array('data-action' => 'edit')));
 }
Пример #3
0
 protected function _commandDelete(Library\ControllerToolbarCommand $command)
 {
     $command->append(array('attribs' => array('label' => 'Delete forever', 'data-action' => 'delete')));
 }
Пример #4
0
 protected function _commandPurge(Library\ControllerToolbarCommand $command)
 {
     $command->append(array('attribs' => array('data-novalidate' => 'novalidate', 'data-action' => 'purge')));
 }