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.
void
count(): int
Count elements of an object
int
flush(): void
Empties the list of dispatched events.
void
hasEvent(string $name): bool
Checks if an event is in the list.
string
$name Event name.
bool
offsetExists(mixed $offset): bool
Whether a offset exists
mixed
$offset An offset to check for.
bool
offsetGet(mixed $offset): mixed
Offset to retrieve
mixed
$offset The offset to retrieve.
mixed
offsetSet(mixed $offset, mixed $value): void
Offset to set
mixed
$offset The offset to assign the value to.
mixed
$value The value to set.
void
offsetUnset(mixed $offset): void
Offset to unset
mixed
$offset The offset to unset.
void
Events 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