/** * @throws AgileDashboard_KanbanCannotAccessException * @throws AgileDashboard_KanbanNotFoundException * * @return AgileDashboard_Kanban */ public function getKanban(PFuser $user, $kanban_id) { $row = $this->dao->getKanbanById($kanban_id)->getRow(); if (!$row) { throw new AgileDashboard_KanbanNotFoundException(); } if (!$this->isUserAllowedToAccessKanban($user, $row['tracker_id'])) { throw new AgileDashboard_KanbanCannotAccessException(); } return $this->instantiateFromRow($row); }