...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/copy/implement/template.php
- Класс: BitrixTasksCopyImplementTemplate
- Вызов: Template::getChildrenIds
public function getChildrenIds($templateId) { $childrenIds = []; $queryObject = DependenceTable::getSubTree($templateId, ["filter" => ["DIRECT" => true]], ["INCLUDE_SELF" => false]); while ($template = $queryObject->fetch()) { $childrenIds[] = $template["TEMPLATE_ID"]; } return $childrenIds; }