Bitrix API

CurrentUser

FinalYes

Table of Contents

Methods

canDoOperation()  : bool
className()  : string
Returns the fully qualified name of this class.
get()  : self
Returns current user by global $USER.
getEmail()  : mixed
getFirstName()  : mixed
getFormattedName()  : string
getFullName()  : mixed
getId()  : string|int|null
getLastName()  : mixed
getLogin()  : mixed
getSecondName()  : mixed
getUserGroups()  : array<string|int, mixed>
isAdmin()  : bool

Methods

canDoOperation()

public canDoOperation(string $operationName) : bool
Parameters
$operationName : string
Return values
bool

className()

Returns the fully qualified name of this class.

public static className() : string
Return values
string

get()

Returns current user by global $USER.

public static get() : self
Return values
self

getFormattedName()

public getFormattedName() : string
Return values
string

getId()

public getId() : string|int|null
Return values
string|int|null

getUserGroups()

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

isAdmin()

public isAdmin() : bool
Return values
bool

        
On this page

Search results