Class NeevoObserverMap
The map of observers - instances of INeevoObserver.
-
NeevoObserverMap
implements
Iterator,
Countable
Methods summary
public
|
#
attach( INeevoObserver $observer, integer $event )
Add given observer to map for given event.
Add given observer to map for given event.
Parameters
|
public
|
#
detach( INeevoObserver $observer )
Remove given observer from map.
Remove given observer from map.
Parameters
|
public
boolean
|
#
contains( INeevoObserver $observer )
Check if given observer is in the map.
Check if given observer is in the map.
Parameters
Returns
boolean
|
public
integer
|
#
getEvent( )
Get the event associated with current observer in iteration.
Get the event associated with current observer in iteration.
Returns
integer
|
public
integer
|
#
count( )
Get number of observers in map.
Get number of observers in map.
Returns
integer
Implementation of
|
public
|
#
rewind( )
Rewind internal pointer.
Implementation of
|
public
|
#
next( )
Move to next observer.
Implementation of
|
public
boolean
|
#
valid( )
Check for valid current observer.
Check for valid current observer.
Returns
boolean
Implementation of
|
public
INeevoObserver
|
#
current( )
Return the current observer.
Return the current observer.
Returns
Implementation of
|
public
integer
|
#
key( )
Return the key of current observer.
Return the key of current observer.
Returns
integer
Implementation of
|
Magic methods summary