Example #1
0
 protected function _afterBrowse(KControllerContextInterface $context)
 {
     parent::_afterBrowse($context);
     $this->removeCommand('new');
     $this->removeCommand('delete');
     $this->addCommand('enable');
     $this->addCommand('disable');
 }
Example #2
0
 protected function _afterBrowse(KControllerContextInterface $context)
 {
     parent::_afterBrowse($context);
     $controller = $this->getController();
     $this->addSeparator();
     $this->addPublish(array('allowed' => $controller->canEdit()));
     $this->addUnpublish(array('allowed' => $controller->canEdit()));
     if ($controller->canBrowse()) {
         $this->addSeparator()->addExport();
     }
     if ($controller->canAdmin()) {
         $this->addSeparator()->addOptions();
     }
 }