Bitrix API

Helper

Table of Contents

Methods

canCurrentUserCallFromCrm()  : bool
canCurrentUserPerformAnyCall()  : bool
canCurrentUserPerformCalls()  : bool
canUpdateBalance()  : bool
canUse()  : bool
canUserCallNumber()  : bool
clearMenuCache()  : void
createDefaultRoles()  : bool
Creates default roles and associates them whith access tokens.
getAllowedUserIds()  : array<string|int, mixed>|null
getCurrentUserId()  : int
getDefaultRoleAccess()  : array<string|int, mixed>
getDefaultRoles()  : array<string|int, mixed>
getUserColleagues()  : array<string|int, mixed>
isAdmin()  : bool
Returns true if user is portal admin.
isBalanceMenuEnabled()  : bool
isLinesMenuEnabled()  : bool
isMainMenuEnabled()  : bool
isSettingsMenuEnabled()  : bool
isUsersMenuEnabled()  : bool
resetToDefault()  : null
Deletes oll roles and permissions and creates default ones instead.

Methods

canCurrentUserCallFromCrm()

public static canCurrentUserCallFromCrm() : bool
Return values
bool

canCurrentUserPerformAnyCall()

public static canCurrentUserPerformAnyCall() : bool
Return values
bool

canCurrentUserPerformCalls()

public static canCurrentUserPerformCalls() : bool
Return values
bool

canUpdateBalance()

public static canUpdateBalance() : bool
Return values
bool

canUse()

public static canUse() : bool
Return values
bool

canUserCallNumber()

public static canUserCallNumber(mixed $userId, mixed $number[, mixed $country = '' ]) : bool
Parameters
$userId : mixed
$number : mixed
$country : mixed = ''
Return values
bool

clearMenuCache()

public static clearMenuCache() : void

createDefaultRoles()

Creates default roles and associates them whith access tokens.

public static createDefaultRoles() : bool
Tags
throws
ArgumentException
throws
LoaderException
throws
Exception
Return values
bool

getAllowedUserIds()

public static getAllowedUserIds(int $userId, string $permission) : array<string|int, mixed>|null
Parameters
$userId : int
$permission : string
Return values
array<string|int, mixed>|null

Returns array of owner user ids if there is limit and null if query should not be limited.

getCurrentUserId()

public static getCurrentUserId() : int
Return values
int

getDefaultRoleAccess()

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

getDefaultRoles()

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

getUserColleagues()

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

isAdmin()

Returns true if user is portal admin.

public static isAdmin([int $userId = null ]) : bool
Parameters
$userId : int = null

Id of the user.

Return values
bool

isBalanceMenuEnabled()

public static isBalanceMenuEnabled() : bool
Return values
bool

isLinesMenuEnabled()

public static isLinesMenuEnabled() : bool
Return values
bool

isMainMenuEnabled()

public static isMainMenuEnabled() : bool
Return values
bool

isSettingsMenuEnabled()

public static isSettingsMenuEnabled() : bool
Return values
bool

isUsersMenuEnabled()

public static isUsersMenuEnabled() : bool
Return values
bool

resetToDefault()

Deletes oll roles and permissions and creates default ones instead.

public static resetToDefault() : null
Return values
null

        
On this page

Search results