Beispiel #1
0
 /**
  * Add a new dependence between two tasks
  */
 public function add($taskIdFrom, $taskIdTo, $linkType)
 {
     global $USER;
     try {
         $task = new \CTaskItem($taskIdTo, $USER->GetId());
         $task->addDependOn($taskIdFrom, $linkType);
     } catch (Tree\Exception $e) {
         $this->errors->add('ILLEGAL_NEW_LINK', \Bitrix\Tasks\Dispatcher::proxyExceptionMessage($e));
     }
     return array();
 }