/**
  * Constructor
  *
  * @param Request $request
  * @return MobileAccessController extends ApplicationController 
  */
 function __construct($request)
 {
     parent::__construct($request);
     $this->enableCategories();
     if ($this->logged_user->getProjectPermission('page', $this->active_project) < PROJECT_PERMISSION_ACCESS) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     $this->controller_description_name = lang('Pages');
     $this->active_project_section = 'pages';
     // Active page
     $this->active_page = ProjectObjects::findById($this->request->getId('object_id'));
     if (!instance_of($this->active_page, 'Page')) {
         $this->active_page = new Page();
     }
     // if
     $this->addBreadcrumb($this->controller_description_name, assemble_url('mobile_access_view_pages', array('project_id' => $this->active_project->getId())));
     $this->smarty->assign(array('active_page' => $this->active_page));
 }
 /**
  * Constructor
  *
  * @param Request $request
  * @return MobileAccessProjectRepositoriesController extends ApplicationController 
  */
 function __construct($request)
 {
     parent::__construct($request);
     if ($this->logged_user->getProjectPermission('repository', $this->active_project) < PROJECT_PERMISSION_ACCESS) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     $this->controller_description_name = lang('Repositories');
     $this->active_project_section = 'repositories';
     $repository_id = $this->request->getId('object_id');
     if ($repository_id) {
         $this->active_repository = Repositories::findById($repository_id);
     }
     // if
     if (!instance_of($this->active_repository, 'Repository')) {
         $this->active_repository = new Repository();
     }
     // if
     $this->smarty->assign(array("active_repository" => $this->active_repository, "active_project_section" => $this->active_project_section));
     $this->addBreadcrumb($this->controller_description_name, assemble_url('mobile_access_view_repositories', array('project_id' => $this->active_project->getId())));
 }
 /**
  * Constructor
  *
  * @param Request $request
  * @return MobileAccessController extends ApplicationController 
  */
 function __construct($request)
 {
     parent::__construct($request);
     if ($this->logged_user->getProjectPermission('ticket', $this->active_project) < PROJECT_PERMISSION_ACCESS) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     $this->controller_description_name = lang('Tickets');
     $this->active_project_section = 'tickets';
     $this->enableCategories();
     $ticket_id = $this->request->getId('object_id');
     if ($ticket_id) {
         $this->active_ticket = ProjectObjects::findById($ticket_id);
     }
     // if
     if (!instance_of($this->active_ticket, 'Ticket')) {
         $this->active_ticket = new Ticket();
     }
     // if
     $this->smarty->assign(array("active_ticket" => $this->active_ticket, "active_project_section" => $this->active_project_section));
     $this->addBreadcrumb($this->controller_description_name, assemble_url('mobile_access_view_tickets', array('project_id' => $this->active_project->getId())));
 }