API15:JApplication/registerEvent/ja
出典: Joomla! ドキュメンテーション
目次 |
Description
Registers a handler to a particular event group.
Syntax
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
void
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
function registerEvent($event, $handler) { $dispatcher =& JDispatcher::getInstance(); $dispatcher->register($event, $handler); }
Examples
<CodeExamplesForm />
