The Event List
arrayCake\Event\EventInterface>Events list
Adds an event to the list when event listing is enabled.
Count elements of an object
Empties the list of dispatched events.
Checks if an event is in the list.
Whether a offset exists
Offset to retrieve
Offset to set
Offset to unset
add(Cake\Event\EventInterface $event): void
Adds an event to the list when event listing is enabled.
Cake\Event\EventInterface $event An event to the list of dispatched events.
voidcount(): int
Count elements of an object
intflush(): void
Empties the list of dispatched events.
voidhasEvent(string $name): bool
Checks if an event is in the list.
string $name Event name.
booloffsetExists(mixed $offset): bool
Whether a offset exists
mixed $offset An offset to check for.
booloffsetGet(mixed $offset): mixed
Offset to retrieve
mixed $offset The offset to retrieve.
mixedoffsetSet(mixed $offset, mixed $value): void
Offset to set
mixed $offset The offset to assign the value to.
mixed $value The value to set.
voidoffsetUnset(mixed $offset): void
Offset to unset
mixed $offset The offset to unset.
voidEvents list
arrayCake\Event\EventInterface>
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Event.EventList.html