Bitrix API

TypeAccessController extends BaseAccessController

Table of Contents

Properties

$cache  : array<string|int, mixed>

Methods

__construct()  : mixed
batchCheck()  : array<string|int, mixed>
can()  : bool
check()  : bool
checkByItemId()  : bool
getEntityFilter()  : array<string|int, mixed>|null
Get filter for entity.
getInstance()  : static
getUser()  : AccessibleUser

Properties

Methods

can()

public static can(mixed $userId, string $action[, mixed $itemId = null ][, mixed $params = null ]) : bool
Parameters
$userId : mixed
$action : string
$itemId : mixed = null
$params : mixed = null
Return values
bool

checkByItemId()

public checkByItemId(string $action[, int $itemId = null ][, mixed $params = null ]) : bool
Parameters
$action : string
$itemId : int = null
$params : mixed = null
Return values
bool

getEntityFilter()

Get filter for entity.

public getEntityFilter(string $action, string $entityName[, mixed $params = null ]) : array<string|int, mixed>|null
Parameters
$action : string
$entityName : string

recommended to use the name of the tablet class.

$params : mixed = null
Tags
inheritDoc
Return values
array<string|int, mixed>|null

is filter not available - return null.

getInstance()

public static getInstance(mixed $userId) : static
Parameters
$userId : mixed
Return values
static

        
On this page

Search results