コード例 #1
0
 function trash($trash_children = true, $trashDate = null)
 {
     if (is_null($trashDate)) {
         $trashDate = DateTimeValueLib::now();
     }
     if ($trash_children) {
         $children = $this->getAllSubTasks();
         foreach ($children as $child) {
             $child->setDontMakeCalculations($this->getDontMakeCalculations());
             $child->trash(true, $trashDate);
         }
     }
     return parent::trash($trashDate);
 }
コード例 #2
0
	function trash($trash_children = true, $trashDate = null) {
		if (is_null($trashDate))
			$trashDate = DateTimeValueLib::now();
		if($trash_children)  {
			$children = $this->getAllSubTasks();
			foreach($children as $child)
				$child->trash(true,$trashDate);
		}
		return parent::trash($trashDate);
	} // delete
コード例 #3
0
 function trash($trash_children = true, $trashDate = null)
 {
     if (is_null($trashDate)) {
         $trashDate = DateTimeValueLib::now();
     }
     if ($trash_children) {
         $children = $this->getAllSubTasks();
         foreach ($children as $child) {
             $child->trash(true, $trashDate);
             ApplicationLogs::createLog($child, $child->getWorkspaces(), ApplicationLogs::ACTION_TRASH);
         }
     }
     return parent::trash($trashDate);
 }