The Event List
\Cake\Event\EventInterface[]
Events list
add(\Cake\Event\EventInterface $event)
Adds an event to the list when event listing is enabled.
\Cake\Event\EventInterface
$event An event to the list of dispatched events.
count()
Count elements of an object
int
The custom count as an integer.
flush()
Empties the list of dispatched events.
hasEvent(string $name)
Checks if an event is in the list.
string
$name Event name.
bool
offsetExists(mixed $offset)
Whether a offset exists
mixed
$offset An offset to check for.
bool
True on success or false on failure.
offsetGet(mixed $offset)
Offset to retrieve
mixed
$offset The offset to retrieve.
mixed
Can return all value types.
offsetSet(mixed $offset, mixed $value)
Offset to set
mixed
$offset The offset to assign the value to.
mixed
$value The value to set.
offsetUnset(mixed $offset)
Offset to unset
mixed
$offset The offset to unset.
Events list
\Cake\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.1/class-Cake.Event.EventList.html