Esempio n. 1
0
 /**
  * Add a new elapsed time record to a specified task
  */
 public function add(array $data, array $parameters = array())
 {
     global $USER;
     $result = array();
     $mgrResult = array();
     if ($taskId = $this->checkTaskId($data['TASK_ID'])) {
         unset($data['TASK_ID']);
         $mgrResult = Manager\Task\ElapsedTime::add($USER->GetId(), $taskId, $data, array('PUBLIC_MODE' => true, 'ERRORS' => $this->errors));
     }
     return array('DATA' => $mgrResult['DATA'], 'CAN' => $mgrResult['CAN']);
 }