Beispiel #1
0
 public function openTask($iTaskID)
 {
     $oTaskRepository = new TaskRepository();
     $oTaskTO = $oTaskRepository->Find($iTaskID);
     $oTask = new Task(new TaskStatus($oTaskTO->getStatus()), new DateTime($oTaskTO->getCreationDate()));
     $oTask->setDescription($oTaskTO->getDescription())->setDeadline(new DateTime($oTaskTO->getDeadline()))->setActDate(new DateTime($oTaskTO->getActDate()));
 }
 public function openList(User $oUser, $iListID)
 {
     $oTaskListRepository = new TaskListRepository();
     $oTaskList = $oTaskListRepository->Find($oUser->getID(), $iListID);
     $oTaskRepository = new TaskRepository();
     $aTasks = $oTaskRepository->findByListID($oTaskList->getID());
     foreach ($aTasks as $oTask) {
         $oTaskList->addTask($oTask);
     }
     return $oTaskList;
 }