Access
Class Access
Table of Contents
Constants
Methods
- __construct() : mixed
- Access constructor.
- canRead() : bool
- Return true if user can read.
- canWrite() : bool
- Return true if user can write.
- current() : static
- Get instance for current user.
- getErrorText() : string
- Get error text by code.
Constants
READ
public
mixed
READ
= 'READ'
WRITE
public
mixed
WRITE
= 'WRITE'
Methods
__construct()
Access constructor.
public
__construct([int|null $userId = null ]) : mixed
Parameters
- $userId : int|null = null
-
User ID.
canRead()
Return true if user can read.
public
canRead() : bool
Return values
boolcanWrite()
Return true if user can write.
public
canWrite() : bool
Return values
boolcurrent()
Get instance for current user.
public
static current() : static
Return values
staticgetErrorText()
Get error text by code.
public
static getErrorText(mixed $code) : string
Parameters
- $code : mixed