예제 #1
0
 /**
  * Get a planning
  *
  * @param int $group_id
  *
  * @return Planning
  */
 public function getPlanning($planning_id)
 {
     $planning = $this->dao->searchById($planning_id)->getRow();
     if (!$planning) {
         return null;
     }
     return $this->getPlanningFromRow($planning);
 }
예제 #2
0
 /**
  * Get a planning
  * 
  * @param int $group_id
  *
  * @return Planning
  */
 public function getPlanning($planning_id)
 {
     $planning = $this->dao->searchById($planning_id)->getRow();
     if ($planning) {
         $backlog_tracker_id = $this->getBacklogTrackerId($planning_id);
         return new Planning($planning_id, $planning['name'], $planning['group_id'], $planning['backlog_title'], $planning['plan_title'], $backlog_tracker_id, $planning['planning_tracker_id']);
     }
     return null;
 }