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
boolmergeFields()
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>mergeObjectFields()
public
mergeObjectFields(EntityObject $object) : mixed
Parameters
- $object : EntityObject
send()
public
send([mixed $sender = null ]) : mixed
Parameters
- $sender : mixed = null