• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/template/templateobject.php
  • Класс: BitrixTasksInternalsTaskTemplateTemplateObject
  • Вызов: TemplateObject::getChildren
public function getChildren(): array
{
	$result = [];
	$res = CTaskTemplates::getList(
		['BASE_TEMPLATE_ID' => 'asc'],
		['BASE_TEMPLATE_ID' => $this->getId()],
		false,
		['INCLUDE_TEMPLATE_SUBTREE' => true],
		['*', 'UF_*', 'BASE_TEMPLATE_ID']
	);
	while ($item = $res->fetch())
	{
		if ((int)$item['ID'] === $this->getId())
		{
			continue;
		}
		$result[(int)$item['ID']] = $item;
	}

	return $result;
}