Fr3nch13/CakePHP Utilities

EventList
in package
implements ArrayAccess, Countable

The Event List

Table of Contents

Interfaces

ArrayAccess
Countable

Properties

$_events  : array<string|int, EventInterface>
Events list

Methods

add()  : void
Adds an event to the list when event listing is enabled.
count()  : int
Count elements of an object
flush()  : void
Empties the list of dispatched events.
hasEvent()  : bool
Checks if an event is in the list.
offsetExists()  : bool
Whether a offset exists
offsetGet()  : mixed
Offset to retrieve
offsetSet()  : void
Offset to set
offsetUnset()  : void
Offset to unset

Properties

Methods

flush()

Empties the list of dispatched events.

public flush() : void

hasEvent()

Checks if an event is in the list.

public hasEvent(string $name) : bool
Parameters
$name : string

Event name.

Return values
bool

        
On this page

Search results