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