User
Class User
Table of Contents
Methods
- __construct() : mixed
- User constructor.
- canEdit() : bool
- Return true if current user can edit on module pages.
- canEditPhp() : bool
- Return true if current user can edit php.
- canUseLpa() : bool
- Return true if current user can use LPA.
- canView() : bool
- Return true if current user can view module pages.
- current() : static
- Get current user.
- get() : static
- Get user by ID.
- getAccess() : Access
- Return access instance.
- getId() : int|null
- Get current user ID.
- getObject() : CUser|null
- Get USER object.
- hasAccess() : bool
- Return true if current user has access to one or more module pages.
- isAdmin() : bool
- Return true if current user is admin.
- isAgreementAccepted() : bool
- Return true if user accepted agreement.
- isExtranet() : mixed
- isPortalAdmin() : bool
- Return true if current user is portal admin.
Methods
__construct()
User constructor.
public
__construct([int|null $id = null ]) : mixed
Parameters
- $id : int|null = null
-
ID.
canEdit()
Return true if current user can edit on module pages.
public
canEdit() : bool
Return values
boolcanEditPhp()
Return true if current user can edit php.
public
canEditPhp() : bool
Return values
boolcanUseLpa()
Return true if current user can use LPA.
public
canUseLpa() : bool
Return values
boolcanView()
Return true if current user can view module pages.
public
canView() : bool
Return values
boolcurrent()
Get current user.
public
static current() : static
Return values
staticget()
Get user by ID.
public
static get(int $id) : static
Parameters
- $id : int
-
ID.
Return values
staticgetAccess()
Return access instance.
public
getAccess() : Access
Tags
Return values
AccessgetId()
Get current user ID.
public
getId() : int|null
Return values
int|nullgetObject()
Get USER object.
public
getObject() : CUser|null
Return values
CUser|nullhasAccess()
Return true if current user has access to one or more module pages.
public
hasAccess() : bool
Return values
boolisAdmin()
Return true if current user is admin.
public
isAdmin() : bool
Return values
boolisAgreementAccepted()
Return true if user accepted agreement.
public
isAgreementAccepted() : bool
Return values
boolisExtranet()
public
isExtranet() : mixed
isPortalAdmin()
Return true if current user is portal admin.
public
isPortalAdmin() : bool