Class EventList

The Event List

Cake\Event\EventList implements ArrayAccess, Countable
Namespace: Cake\Event
Location: Event/EventList.php

Properties summary

Method Summary

Method Detail

add()source 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()source public

count( )

Count elements of an object

Returns

integer
The custom count as an integer.

Link

https://secure.php.net/manual/en/countable.count.php

Implementation of

Countable::count()

flush()source public

flush( )

Empties the list of dispatched events.

hasEvent()source public

hasEvent( string $name )

Checks if an event is in the list.

Parameters

string $name
Event name.

Returns

boolean

offsetExists()source 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.

Link

https://secure.php.net/manual/en/arrayaccess.offsetexists.php

Implementation of

ArrayAccess::offsetExists()

offsetGet()source public

offsetGet( mixed $offset )

Offset to retrieve

Parameters

mixed $offset
The offset to retrieve.

Returns

mixed
Can return all value types.

Link

https://secure.php.net/manual/en/arrayaccess.offsetget.php

Implementation of

ArrayAccess::offsetGet()

offsetSet()source 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

https://secure.php.net/manual/en/arrayaccess.offsetset.php

Implementation of

ArrayAccess::offsetSet()

offsetUnset()source public

offsetUnset( mixed $offset )

Offset to unset

Parameters

mixed $offset
The offset to unset.

Link

https://secure.php.net/manual/en/arrayaccess.offsetunset.php

Implementation of

ArrayAccess::offsetUnset()

Properties detail

$_eventssource

protected Cake\Event\Event[]

Events list

[]

© 2005–2017 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/3.4/class-Cake.Event.EventList.html