Exemplo n.º 1
0
 /**
  * Update an elapsed time record
  */
 public function update($id, array $data, array $parameters = array())
 {
     global $USER;
     $result = array();
     $mgrResult = array();
     if ($id = $this->checkId($id)) {
         $taskId = $this->getOwnerTaskId($id);
         if ($taskId) {
             $mgrResult = Manager\Task\ElapsedTime::update($USER->GetId(), $taskId, $id, $data, array('PUBLIC_MODE' => true, 'ERRORS' => $this->errors));
         }
     }
     return array('DATA' => $mgrResult['DATA'], 'CAN' => $mgrResult['CAN']);
 }