API16:JDispatcher/getInstance
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Returns the global Event Dispatcher object, only creating it if it doesn't already exist.
Description:JDispatcher/getInstance
Syntax
static getInstance()
Returns
The EventDispatcher object.
Defined in
libraries/joomla/event/dispatcher.php
Importing
jimport( 'joomla.event.dispatcher' );
Source Body
public static function getInstance() { static $instance; if (!is_object($instance)) { $instance = new JDispatcher(); } return $instance; }
[Edit See Also] SeeAlso:JDispatcher/getInstance
Examples
<CodeExamplesForm />
