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