Beispiel #1
0
 /**
  * @todo transaction
  * @see ProjectInterface::mark_as_canceled()
  * @param string $comment
  * @return bool
  */
 public function mark_as_canceled($comment)
 {
     if ($this->project_id and $this->project) {
         $project_has_project_status = new ProjectHasProjectStatus_Access(null);
         if ($project_has_project_status->create($this->project_id, 0) != null) {
             $project_log = new ProjectLog(null);
             $project_log->create($this->project_id, $comment, true, true);
             $project_log->link_status(0);
             return true;
         } else {
             return false;
         }
     } else {
         return false;
     }
 }