Event extends Event
Table of Contents
Methods
- __construct() : mixed
- existEventHandlers() : bool
- Search handlers for event.
- existEventHandlersById() : bool
- Search handlers for event by id.
- getErrors() : bool
- Checks the result of the event for errors, fills the Result object.
- makeEventName() : string
- mergeData() : void
- Merge data from handlers.
Methods
__construct()
public
__construct(Entity $entity, string $type[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $entity : Entity
- $type : string
- $parameters : array<string|int, mixed> = []
existEventHandlers()
Search handlers for event.
public
static existEventHandlers(Entity $entity, string $eventName) : bool
Parameters
- $entity : Entity
- $eventName : string
Return values
boolexistEventHandlersById()
Search handlers for event by id.
public
static existEventHandlersById(string $id) : bool
Parameters
- $id : string
Return values
boolgetErrors()
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
boolmakeEventName()
public
static makeEventName(string $class, string $eventName) : string
Parameters
- $class : string
- $eventName : string
Return values
stringmergeData()
Merge data from handlers.
public
mergeData(array<string|int, mixed> &$data) : void
Parameters
- $data : array<string|int, mixed>