Bitrix API

RoleManager

Table of Contents

Methods

getDefaultRoleCode()  : string|null
getMainRole()  : string|null
getRecentKeyRoles()  : array<string|int, mixed>
getRoles()  : array<string|int, mixed>|null
getRolesInChat()  : array<string|int, mixed>
updateRole()  : Result

Methods

getDefaultRoleCode()

public static getDefaultRoleCode() : string|null
Return values
string|null

getMainRole()

public getMainRole(int|null $chatId) : string|null
Parameters
$chatId : int|null
Return values
string|null

getRecentKeyRoles()

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

getRoles()

public getRoles(array<string|int, mixed> $roleCodes, int $userId) : array<string|int, mixed>|null
Parameters
$roleCodes : array<string|int, mixed>
$userId : int
Return values
array<string|int, mixed>|null

getRolesInChat()

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

updateRole()

public updateRole(Chat $chat, int $userId, string|null $roleCode) : Result
Parameters
$chat : Chat
$userId : int
$roleCode : string|null
Return values
Result

        
On this page

Search results