• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskitem.php
  • Класс: CTaskItem
  • Вызов: CTaskItem::getDependsOn
public function getDependsOn()
{
	// ensure we have access to the task
	$this->checkCanReadThrowException();

	if ($this->arTaskDependsOn === null)
	{
		$rsDependsOn = CTaskDependence::GetList(
			array(),
			array('TASK_ID' => $this->taskId)
		);

		$arTaskDependsOn = array();

		while ($arDependsOn = $rsDependsOn->fetch())
			$arTaskDependsOn[] = $arDependsOn['DEPENDS_ON_ID'];

		$this->arTaskDependsOn = $arTaskDependsOn;
	}

	return ($this->arTaskDependsOn);
}