Esempio n. 1
0
 /**
  * Method to render the view.
  *
  * @return  string  The rendered view.
  *
  * @since   12.1
  * @throws  RuntimeException
  */
 public function render()
 {
     $this->prefix = 'issue';
     $this->items = $this->model->getIssues();
     $this->setLayout('default');
     $this->addToolbar();
     return parent::render();
 }
Esempio n. 2
0
 /**
  * Method to render the view.
  *
  * @return  string  The rendered view.
  *
  * @since   12.1
  * @throws  RuntimeException
  */
 public function render()
 {
     $this->prefix = 'project';
     $projects = $this->model->getProjects();
     $this->items = $projects;
     $this->setLayout('default');
     $this->addToolbar();
     return parent::render();
 }
Esempio n. 3
0
 /**
  * Method to render the view.
  *
  * @return  string  The rendered view.
  *
  * @since   12.1
  * @throws  RuntimeException
  */
 public function render()
 {
     $this->prefix = 'classification';
     $classifications = $this->model->getClassifications();
     $this->items = $classifications;
     $this->setLayout('default');
     $this->addToolbar();
     return parent::render();
 }
Esempio n. 4
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');
     }
 }
Esempio n. 5
0
 /**
  * Method to render the view.
  *
  * @return  string  The rendered view.
  *
  * @since   12.1
  * @throws  RuntimeException
  */
 public function render()
 {
     $this->prefix = 'comment';
     $comments = $this->model->getComments();
     $this->items = $comments;
     $user = JFactory::getUser();
     $this->canDeleteComments = $user->authorise('comment.delete', 'com_monitor');
     $this->canEditComments = $user->authorise('comment.edit', 'com_monitor');
     $this->canEditOwnComments = $user->authorise('comment.edit.own', 'com_monitor');
     $this->canEditIssues = $user->authorise('issue.edit', 'com_monitor');
     $this->canEditOwnIssues = $user->authorise('issue.edit.own', 'com_monitor');
     $this->canEditProjects = $user->authorise('project.edit', 'com_monitor');
     $this->setLayout('default');
     $this->addToolbar();
     return parent::render();
 }