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); }
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
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); }