Actions

API15

JApplication/registerEvent

From Joomla! ドキュメンテーション

Revision as of 03:45, 3 October 2015 by Sync (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

Description

Registers a handler to a particular event group.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />