Class FOFUtilsObservableDispatcher
Class to handle dispatching of events.
This is the Observable part of the Observer design pattern for the event architecture.
This class is based on JEventDispatcher as found in Joomla! 3.2.0
- FOFUtilsObject
- FOFUtilsObservableDispatcher
Direct known subclasses
Package: FrameworkOnFramework\utils
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/observable/dispatcher.php
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/observable/dispatcher.php
Methods summary
public static
|
#
getInstance( )
Returns the global Event Dispatcher object, only creating it if it doesn't already exist. |
public
mixed
|
|
public
|
|
public
array
|
|
public
|
|
public
boolean
|
Methods inherited from FOFUtilsObject
__construct()
,
__toString()
,
def()
,
get()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Properties summary
protected
array
|
$_observers |
#
An array of Observer objects to notify |
protected
mixed
|
$_state |
#
The state of the observable object |
protected
array
|
$_methods |
#
A multi dimensional array of [function][] = key for observers |
protected static
|
$instance |
#
Stores the singleton instance of the dispatcher. |