class EventManager implements Countable, IteratorAggregate (View source)

EventManager Object

This class keeps track of events and their respective callbacks for a chart or dashboard.

Methods

int
count()

Returns the number of events when the EventManager is counted.

int
getIterator()

Allows for the events to be traversed with foreach.

set( string $event, string $callback)

Sets the callback for an event.

string
getCallback( string $event)

Retrieves the javascript callback for a chart event.

Details

at line 55
int count()

Returns the number of events when the EventManager is counted.

Return Value

int

at line 67
int getIterator()

Allows for the events to be traversed with foreach.

Return Value

int

at line 81
set( string $event, string $callback)

Sets the callback for an event.

Parameters

string $event
string $callback

Exceptions

InvalidEvent
InvalidEventCallback

at line 100
string getCallback( string $event)

Retrieves the javascript callback for a chart event.

Parameters

string $event

Return Value

string

Exceptions

InvalidEvent