JApplication/registerEvent
From Joomla! Documentation
< API15:JApplication
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Registers a handler to a particular event group.
Template:Description:JApplication/registerEvent
Syntax[edit]
static registerEvent($event, $handler)
Parameter Name | Default Value | Description |
---|---|---|
$event | The event name. | |
$handler | The handler, a function or an instance of a event object. |
Returns[edit]
void
Defined in[edit]
libraries/joomla/application/application.php
Importing[edit]
jimport( 'joomla.application.application' );
Source Body[edit]
public static function registerEvent($event, $handler)
{
$dispatcher = &JDispatcher::getInstance();
$dispatcher->register($event, $handler);
}
[Edit See Also] Template:SeeAlso:JApplication/registerEvent
Examples[edit]
<CodeExamplesForm />