Bitrix API

SimpleFlowAccessController extends FlowAccessController

Tags
@method

(): bool

@method

(): bool

@method

(): bool

@method

(): bool

Table of Contents

Methods

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

Methods

__call()

public __call(string $name, array<string|int, mixed> $args) : bool
Parameters
$name : string
$args : array<string|int, mixed>
Return values
bool

__construct()

public __construct(int $userId[, FlowModel|null $model = null ][, array<string|int, mixed>|null $params = null ]) : mixed
Parameters
$userId : int
$model : FlowModel|null = null
$params : array<string|int, mixed>|null = null

addError()

public addError(string $class[, string $message = '' ]) : void
Parameters
$class : string
$message : string = ''

can()

public static can(mixed $userId, string|FlowAction $action[, mixed $itemId = null ][, mixed $params = null ]) : bool
Parameters
$userId : mixed
$action : string|FlowAction
$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.

getErrorCollection()

public getErrorCollection() : ErrorCollection
Return values
ErrorCollection

getErrors()

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

getInstance()

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

        
On this page

Search results