1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Manager

Открытые статические члены

static clearMenuCache ()
static canUse ()
static getTrialText ()
static getRoleList (array $parameters=[])
static getAccessList (array $parameters=[])
static setAccessCodes (array $list=[])
static getRolesByUserId ($userId)
static getRolePermissions ($roleId)
static setRolePermissions ($roleId=null, array $roleFields=[], array $permissions)
static deleteRole ($roleId)
static installRolesAgent ()
static installRoles ()

Статические защищенные данные

static $userRoles = []

Подробное описание

См. определение в файле manager.php строка 22

Методы

◆ canUse()

canUse ( )
static

Return true if can use role access.

Возвращает
bool

См. определение в файле manager.php строка 42

◆ clearMenuCache()

clearMenuCache ( )
static

Clean menu cache.

Возвращает
void

См. определение в файле manager.php строка 32

◆ deleteRole()

deleteRole ( $roleId)
static

Deletes role and all dependent records.

Аргументы
int$roleIdId of the role.
Возвращает
void

См. определение в файле manager.php строка 231

◆ getAccessList()

getAccessList ( array $parameters = [])
static

Get access list.

Аргументы
array$parametersParameters.
Возвращает
\Bitrix\Main\DB\Result

См. определение в файле manager.php строка 79

◆ getRoleList()

getRoleList ( array $parameters = [])
static

Get role list.

Аргументы
array$parametersParameters.
Возвращает
\Bitrix\Main\DB\Result

См. определение в файле manager.php строка 68

◆ getRolePermissions()

getRolePermissions ( $roleId)
static

Get role permissions.

Аргументы
int$roleIdRole ID.
Возвращает
array

См. определение в файле manager.php строка 149

◆ getRolesByUserId()

getRolesByUserId ( $userId)
static

Get roles by user ID.

Аргументы
int$userIdUser ID.
Возвращает
array
Исключения

Bitrix\Main\ArgumentException

См. определение в файле manager.php строка 117

◆ getTrialText()

getTrialText ( )
static

Return true if can use role access.

Возвращает
bool

См. определение в файле manager.php строка 57

◆ installRoles()

installRoles ( )
static

Install roles.

Возвращает
void

См. определение в файле manager.php строка 255

◆ installRolesAgent()

installRolesAgent ( )
static

Install roles.

Возвращает
string

См. определение в файле manager.php строка 244

◆ setAccessCodes()

setAccessCodes ( array $list = [])
static

Set access codes.

Аргументы
array$listList.
Возвращает
AddResult

См. определение в файле manager.php строка 90

◆ setRolePermissions()

setRolePermissions ( $roleId = null,
array $roleFields = [],
array $permissions )
static

Set role permissions. Add or update role

Аргументы
int | null$roleIdRole ID.
array$roleFieldsRole fields.
array$permissionsPermissions.
Возвращает
AddResult|\Bitrix\Main\Entity\UpdateResult
Исключения
ArgumentException

См. определение в файле manager.php строка 170

Поля

◆ $userRoles

$userRoles = []
staticprotected

См. определение в файле manager.php строка 25


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sender/lib/security/role/manager.php