Метод __construct
Сигнатура метода
public function __construct(?int $userId = null, bool $withVariables = true, DelegationScopeValidator $scopeValidator = new DelegationScopeValidator(), string $uiValueSourceClass = VariablesSource::class, string $uiRightItemClass = RightItem::class)
Параметры
5| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
?int
|
null
|
—
|
$withVariables
|
bool
|
true
|
—
|
$scopeValidator
|
DelegationScopeValidator
|
new DelegationScopeValidator()
|
—
|
$uiValueSourceClass
|
string
|
VariablesSource::class
|
—
|
$uiRightItemClass
|
string
|
RightItem::class
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Integration/UI/AccessRights/V2/AccessRightsProvider.php
Расположение метода в файле
Строки
45–53