• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/database/structure/closuretree/fragment.php
  • Класс: BitrixTasksInternalsDataBaseStructureClosureTreeFragment
  • Вызов: Fragment::excludeSubTreeFragment
public function excludeSubTreeFragment($id, array $settings = array())
{
	$subSet = array();
	$this->walkWidth(function($item, $id) use(&$subSet) {
		$subSet[] = $id;
	}, $id);

	$ignoreSelf = ($settings['IGNORE_SELF'] ?? null) == true;

	foreach($subSet as $itemId)
	{
		if($ignoreSelf && $itemId == $id)
		{
			continue;
		}
		unset($this->values[$itemId]);
	}

	$this->onChange();
}