/**
  * View the checklist
  *
  */
 function view()
 {
     if ($this->active_checklist->isNew()) {
         $this->httpError(HTTP_ERR_NOT_FOUND);
     }
     // if
     if (!$this->active_checklist->canView($this->logged_user)) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     ProjectObjectViews::log($this->active_checklist, $this->logged_user);
     $this->addBreadcrumb(str_excerpt(clean($this->active_checklist->getName()), 10), mobile_access_module_get_view_url($this->active_checklist));
     $this->addBreadcrumb(lang('View'));
 }
 /**
  * View specific checklist
  *
  * @param void
  * @return null
  */
 function view()
 {
     if ($this->active_checklist->isNew()) {
         $this->httpError(HTTP_ERR_NOT_FOUND);
     }
     // if
     if (!$this->active_checklist->canView($this->logged_user)) {
         $this->httpError($this->logged_user);
     }
     // if
     if ($this->request->isApiCall()) {
         $this->serveData($this->active_checklist, 'checklist', array('describe_tasks' => true));
     } else {
         ProjectObjectViews::log($this->active_checklist, $this->logged_user);
     }
     // if
     $show_only_tasks = $this->request->get('show_only_tasks');
     if ($show_only_tasks) {
         $this->skip_layout = true;
         $this->smarty->assign(array('show_only_tasks' => true));
     }
     // if
     //BOF:mod 20110615
     $this->smarty->assign('object_id', $this->active_checklist->getId());
     //EOF:mod 20110615
 }