Bitrix API

Access

Class Access

Table of Contents

Constants

READ  = 'READ'
WRITE  = 'WRITE'

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

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
bool

canWrite()

Return true if user can write.

public canWrite() : bool
Return values
bool

current()

Get instance for current user.

public static current() : static
Return values
static

getErrorText()

Get error text by code.

public static getErrorText(mixed $code) : string
Parameters
$code : mixed
Return values
string

        
On this page

Search results