| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Event |
JEventDispatcher |
getInstance |
getInstance() |
Never | Work in Progress |
Returns a reference to the global Language object, only creating it if it doesn’t already exist.
JEventDispatcher is implemented as a Singleton object, that is only one instance of this object exists. Do not use the new operator to “create” a new dispatcher instance.
&getInstance()
Example
$dispatcher = &JEventDispatcher::getInstance();