- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/database/mesh.php
- Класс: BitrixTasksInternalsDataBaseMesh
- Вызов: Mesh::applyDeleteRestrictions
static function applyDeleteRestrictions(&$id, &$parentId)
{
$id = Assert::expectIntegerPositive($id, '$id');
if($parentId !== false) // parent id === false means that all links with all parents will be broken
{
$parentId = Assert::expectIntegerPositive($parentId, '$parentId');
}
if(!static::checkNodeExists($id))
{
throw new TreeTargetNodeNotFoundException(false, array('NODES' => array($id)));
}
if($parentId !== false && !static::checkLinkExists($id, $parentId))
{
throw new TreeLinkNotExistException(false, array('NODES' => array($id, $parentId)));
}
}