示例#1
0
 /**
  * Add default toolbar commands
  * .
  * @param	Library\CommandContext	$context A command context object
  */
 protected function _afterControllerBrowse(Library\CommandContext $context)
 {
     parent::_afterControllerBrowse($context);
     $this->addSeparator();
     $this->addEnable();
     $this->addDisable();
 }
示例#2
0
 /**
  * Add default toolbar commands
  * .
  * @param	Library\CommandContext	$context A command context object
  */
 protected function _afterControllerBrowse(Library\CommandContext $context)
 {
     parent::_afterControllerBrowse($context);
     $this->addSeparator();
     $this->addEnable(array('label' => 'publish', 'attribs' => array('data-data' => '{published:1}')));
     $this->addDisable(array('label' => 'unpublish', 'attribs' => array('data-data' => '{published:0}')));
 }
示例#3
0
 /**
  * Add default toolbar commands
  * .
  * @param	Library\CommandContext	$context A command context object
  */
 protected function _afterControllerBrowse(Library\CommandContext $context)
 {
     parent::_afterControllerBrowse($context);
     $this->addSave();
     $this->addApply();
     $this->addCancel(array('attribs' => array('data-novalidate' => 'novalidate')));
 }
示例#4
0
 /**
  * Add default toolbar commands
  * .
  * @param	Library\CommandContext	$context A command context object
  */
 protected function _afterControllerBrowse(Library\CommandContext $context)
 {
     parent::_afterControllerBrowse($context);
     $this->reset();
 }