• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/task/dependence.php
  • Класс: Bitrix\Tasks\Task\does
  • Вызов: does::applyDeleteRestrictions
static function applyDeleteRestrictions(&$id, &$parentId)
{
	$id = 			Assert::expectIntegerPositive($id, '$id');
	//$parentId = 	Assert::expectIntegerPositive($parentId, '$parentId');

	if($parentId !== false && !static::checkLinkExists($id, $parentId))
	{
		throw new Tree\LinkNotExistException(false, array('NODES' => array($id, $parentId)));
	}
}