Exemple #1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     ImcHelper::addSubmenu('issues');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
Exemple #2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $canDo = ImcHelper::getActions();
     $this->canManageSteps = $canDo->get('imc.manage.steps');
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     ImcHelper::addSubmenu('steps');
     $this->addToolbar();
     if (!$this->canManageSteps) {
         JFactory::getApplication()->enqueueMessage(JText::_('COM_IMC_ACTION_NOT_ALLOWED'), 'error');
         return;
     }
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }