Документация для разработчиков
Темная тема

getReportsAuthoritySettings

\Bitrix\HumanResources\Type\NodeSettingsAuthorityTypeCollection public
\Bitrix\HumanResources\Public\Service\NodeSettingsService::getReportsAuthoritySettings(
	int $nodeId
);

Метод возвращает настройки полномочий для получения отчетов от сотрудников узла. Нестатический метод.

Параметры

ПараметрОписание
$nodeIdИдентификатор узла организационной структуры

Возвращаемое значение

Метод возвращает коллекцию NodeSettingsAuthorityTypeCollection. Если настройки не сохранены, коллекция содержит значение NodeSettingsAuthorityType::DepartmentHead.

Исключения

Метод может выбросить \Bitrix\HumanResources\Exception\WrongStructureItemException, \Bitrix\Main\ArgumentException, \Bitrix\Main\ObjectPropertyException или \Bitrix\Main\SystemException.

Пример

<?php

use Bitrix\HumanResources\Public\Service\Container;
use Bitrix\Main\Loader;

if (!Loader::includeModule('humanresources'))
{
	echo 'Модуль humanresources не установлен';
	return;
}

$node = Container::getNodeService()->getRootNode();
if ($node === null)
{
	echo 'Корневой узел не найден';
	return;
}

$result = Container::getNodeSettingsService()->getReportsAuthoritySettings($node->id);

print_r($result);


© «Битрикс», 2001-2026, «1С-Битрикс», 2026