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
boolclassName()
Returns the fully qualified name of this class.
public
static className() : string
Return values
stringget()
Returns current user by global $USER.
public
static get() : self
Return values
selfgetEmail()
public
getEmail() : mixed
getFirstName()
public
getFirstName() : mixed
getFormattedName()
public
getFormattedName() : string
Return values
stringgetFullName()
public
getFullName() : mixed
getId()
public
getId() : string|int|null
Return values
string|int|nullgetLastName()
public
getLastName() : mixed
getLogin()
public
getLogin() : mixed
getSecondName()
public
getSecondName() : mixed
getUserGroups()
public
getUserGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>isAdmin()
public
isAdmin() : bool