Bitrix API

Action extends Base

Class Base

Table of Contents

Methods

__construct()  : mixed
Action constructor.
addChecker()  : $this
Add checker.
addResponseModifier()  : $this
Add response modifier.
call()  : mixed
Call.
create()  : static
Create instance.
getCheckers()  : array<string|int, mixed>
Get checkers.
getName()  : string
Get name.
getRequestMethod()  : string
Get request method.
getResponseModifiers()  : array<string|int, mixed>
Get response modifiers.
run()  : mixed
Run.
setCheckers()  : $this
Set checkers.
setHandler()  : $this
Set handler.
setRequestMethodGet()  : $this
Set request method GET.
setResponseModifiers()  : $this
Set response modifiers.

Methods

__construct()

Action constructor.

public __construct(string $name[, callable|null $handler = null ]) : mixed
Parameters
$name : string

Name.

$handler : callable|null = null

Handler.

addChecker()

Add checker.

public addChecker(callable $checker) : $this
Parameters
$checker : callable

Checker.

Tags
throws
ArgumentException
Return values
$this

addResponseModifier()

Add response modifier.

public addResponseModifier(callable $modifier) : $this
Parameters
$modifier : callable

Modifier.

Tags
throws
ArgumentException
Return values
$this

call()

Call.

public static call(callable $callee[, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
$callee : callable

Callee.

$parameters : array<string|int, mixed> = array()

Parameters.

Tags
throws
ArgumentException

create()

Create instance.

public static create(string $name) : static
Parameters
$name : string

Name.

Return values
static

getCheckers()

Get checkers.

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

getName()

Get name.

public getName() : string
Return values
string

getRequestMethod()

Get request method.

public getRequestMethod() : string
Return values
string

getResponseModifiers()

Get response modifiers.

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

run()

Run.

public run(HttpRequest $request, Response $response) : mixed
Parameters
$request : HttpRequest
$response : Response
Tags
throws
Error

setCheckers()

Set checkers.

public setCheckers(array<string|int, callable> $checkers) : $this
Parameters
$checkers : array<string|int, callable>

Checkers.

Return values
$this

setHandler()

Set handler.

public setHandler(callable $handler) : $this
Parameters
$handler : callable

Handler.

Tags
throws
ArgumentException
Return values
$this

setRequestMethodGet()

Set request method GET.

public setRequestMethodGet() : $this
Return values
$this

setResponseModifiers()

Set response modifiers.

public setResponseModifiers(array<string|int, callable> $modifiers) : $this
Parameters
$modifiers : array<string|int, callable>

Modifiers.

Return values
$this

        
On this page

Search results