Template::getChildrenIds

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Template
  4. getChildrenIds
  • Модуль: 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;
}

Добавить комментарий