/** * 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(); }
/** * 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(); }
/** * 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(); }
/** * Method to render the view. * * @return string The rendered view. * * @since 12.1 * @throws RuntimeException */ public function render() { $this->prefix = 'status'; $status = $this->model->getAllStatus(); $this->items = $status; $user = JFactory::getUser(); $this->canEditProjects = $user->authorise('project.edit', 'com_monitor'); $this->canEditStatus = $user->authorise('status.edit', 'com_monitor'); $this->setLayout('default'); $this->addToolbar(); return parent::render(); }
/** * 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(); }