• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/repository/departmentrepository.php
  • Класс: BitrixTimemanRepositoryDepartmentRepository
  • Вызов: DepartmentRepository::getAllChildDepartmentsIds
public function getAllChildDepartmentsIds($depId)
{
	$departments = (array)CIntranetUtils::getSubDepartments($depId);
	foreach ($departments as $childId)
	{
		$departments = array_merge($departments, $this->getAllChildDepartmentsIds($childId));
	}
	return array_map('intval', $departments);
}