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.
<! removed transcluded page call, red link never existed >
Syntax[edit]
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]
function registerEvent($event, $handler)
{
$dispatcher =& JDispatcher::getInstance();
$dispatcher->register($event, $handler);
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]