method
public
User::__construct()
Класс: \Bitrix\Intranet\User
Сигнатура
public __construct([int|null $userId = null ]) : mixed
Параметры
$userId
int|null
= null
Возвращаемое значение
mixed
Как применяется в User
User::__construct() — метод класса \Bitrix\Intranet\User модуля «Интранет».
Конструктор: создаёт экземпляр User.
use Bitrix\Main\Loader;
use Bitrix\Intranet\User;
Loader::includeModule('intranet');
$object = new User();Другие методы User
fetchOriginatorUser()getFields()getGender()getId()getInvitationCounterValue()getStructureSort()Возвращает отсортированный массив идентификаторов пользователей.getTotalInvitationCounterValue()getUserRole()getWaitConfirmationCounterValue()isAdmin()isEmail()isExternal()
__construct() есть и у других классов модуля «Интранет»: OutlookApplication.
Исходный файл: source/intranet/lib/User.php:37

