Bitrix API

Event extends Event

Table of Contents

Methods

__construct()  : mixed
getEntity()  : mixed
Returns entity
getErrors()  : bool
Checks the result of the event for errors, fills the Result object.
mergeFields()  : array<string|int, mixed>
Merges the data fields set in the event handlers with the source fields.
mergeObjectFields()  : mixed
send()  : mixed

Methods

__construct()

public __construct(Entity $entity, string $type[, array<string|int, mixed> $parameters = array() ][, bool $withNamespace = false ]) : mixed
Parameters
$entity : Entity
$type : string
$parameters : array<string|int, mixed> = array()
$withNamespace : bool = false

getEntity()

Returns entity

public getEntity() : mixed

getErrors()

Checks the result of the event for errors, fills the Result object.

public getErrors(Result $result) : bool

Returns true on errors, false on no errors.

Parameters
$result : Result
Return values
bool

mergeFields()

Merges the data fields set in the event handlers with the source fields.

public mergeFields(array<string|int, mixed> $data) : array<string|int, mixed>

Returns a merged array of the data fields from the all event handlers.

Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

send()

public send([mixed $sender = null ]) : mixed
Parameters
$sender : mixed = null

        
On this page

Search results