Метод replaceRoleRelations

public

Сигнатура метода

public function replaceRoleRelations(int $roleId, array $accessCodes): void

Возвращает: void

Описание

Replaces the relations of a role: drops the current relations and inserts the given access codes. The keys of the map are the access codes (the values mirror the framework relation format and are not persisted).

Параметры

2
Имя Тип По умолчанию Флаги
$roleId int —
—
$accessCodes array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Repository/Access/AccessRepositoryInterface.php
Расположение метода в файле
Строки 94–94

Исходный код

PHP