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