Bitrix API

RolePermissionService implements RolePermissionServiceInterface

Table of Contents

Interfaces

RolePermissionServiceInterface

Methods

__construct()  : mixed
deleteRole()  : void
getAccessRights()  : array<string|int, mixed>
returns access rights list
getRoleList()  : array<string|int, mixed>
getRoleListByUser()  : array<string|int, mixed>
getSavedPermissions()  : array<string|int, mixed>
getUserGroups()  : array<string|int, mixed>
returns user groups
saveRole()  : int
saveRolePermissions()  : void

Methods

getAccessRights()

returns access rights list

public getAccessRights() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRoleList()

public getRoleList([array<string|int, mixed> $parameters = [] ]) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed> = []
Tags
inheritDoc
Return values
array<string|int, mixed>

getRoleListByUser()

public getRoleListByUser(int $userId) : array<string|int, mixed>
Parameters
$userId : int
Tags
inheritDoc
Return values
array<string|int, mixed>

getSavedPermissions()

public getSavedPermissions([array<string|int, mixed> $parameters = [] ]) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed> = []
Tags
inheritDoc
Return values
array<string|int, mixed>

getUserGroups()

returns user groups

public getUserGroups(int $dealCategoryId) : array<string|int, mixed>
Parameters
$dealCategoryId : int
Return values
array<string|int, mixed>

saveRole()

public saveRole(string $name[, int $dealCategoryId = -1 ][, int|null $roleId = null ]) : int
Parameters
$name : string
$dealCategoryId : int = -1

deal category identification number

$roleId : int|null = null

role identification number

Tags
throws
ObjectPropertyException
throws
SystemException
Return values
int

saveRolePermissions()

public saveRolePermissions(array<string|int, mixed> &$permissionSettings[, int $dealCategoryId = -1 ]) : void
Parameters
$permissionSettings : array<string|int, mixed>

permission settings array

$dealCategoryId : int = -1

deal category identification number

Tags
throws
SqlQueryException
throws
ObjectPropertyException
throws
SystemException

        
On this page

Search results