• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/utils.php
  • Класс: CIntranetUtils
  • Вызов: CIntranetUtils::getDepartmentEmployees
static function getDepartmentEmployees($arDepartments, $bRecursive = false, $bSkipSelf = false, $onlyActive = 'Y', $arSelect = null)
{
	if (empty($arDepartments))
	{
		return new CDBResult();
	}

	global $USER;

	return BitrixIntranetUtil::getDepartmentEmployees(array(
		'DEPARTMENTS' => $arDepartments,
		'RECURSIVE' => ($bRecursive ? 'Y' : 'N'),
		'ACTIVE' => ($onlyActive === 'Y' ? 'Y' : 'N'),
		'SKIP' => ($bSkipSelf && is_object($USER) && $USER->IsAuthorized() ? $USER->GetID() : array()),
		'SELECT' => $arSelect
	));
}