Exemplo n.º 1
0
 /**
  * Sets up the toolbar for backend editing.
  *
  * @return void
  */
 protected function addToolbar()
 {
     $user = JFactory::getUser();
     parent::addToolbar();
     if ($user->authorise('status.edit', 'com_monitor')) {
         JToolbarHelper::makeDefault('status.default');
         JToolbarHelper::custom('status.open', 'eye-open', '', 'COM_MONITOR_STATUS_TASK_OPEN');
         JToolbarHelper::custom('status.close', 'eye-close', '', 'COM_MONITOR_STATUS_TASK_CLOSE');
     }
 }