Example #1
0
 /**
  * Pause execution of a specified task
  */
 public function pause($id)
 {
     global $USER;
     $result = array();
     if ($id = $this->checkTaskId($id)) {
         $task = new \CTaskItem($id, $USER->GetId());
         $task->pause();
     }
     return $result;
 }