Bitrix API

User

Table of Contents

Methods

getCurrentUserId()  : int|null
getCurrentUserInfo()  : array<string|int, mixed>|null
getCurrentUserName()  : mixed
getInfo()  : array<string|int, mixed>|null
getSubordinateEmployees()  : array<string|int, mixed>
getUserInfo()  : array<string|int, mixed>|null
Returns [id, name, link, icon] for the specified use id.
preloadUserInfo()  : void
Gets users fields by Ids

Methods

getCurrentUserId()

public static getCurrentUserId() : int|null
Return values
int|null

getCurrentUserInfo()

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

getCurrentUserName()

public static getCurrentUserName() : mixed

getInfo()

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

getSubordinateEmployees()

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

getUserInfo()

Returns [id, name, link, icon] for the specified use id.

public static getUserInfo(int $userId[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|null
Parameters
$userId : int

Id of the user.

$params : array<string|int, mixed> = []

Additional optional parameters

  • avatarWidth int
  • avatarHeight int
  • Return values
    array<string|int, mixed>|null

    preloadUserInfo()

    Gets users fields by Ids

    public static preloadUserInfo(array<string|int, mixed> $userIds) : void
    Parameters
    $userIds : array<string|int, mixed>
    Tags
    throws
    ArgumentException
    throws
    ObjectPropertyException
    throws
    SystemException
    
            
    On this page

    Search results