• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskitem.php
  • Класс: CTaskItem
  • Вызов: CTaskItem::getSubEmployees
static function getSubEmployees($userId)
{
	static $subEmployeesCache = [];

	if (!isset($subEmployeesCache[$userId]))
	{
		$subEmployeesCache[$userId] = IntegrationIntranetUser::getSubordinateSubDepartments($userId);
	}

	return $subEmployeesCache[$userId];
}