Actions

API15

JApplication/registerEvent

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

This page contains changes which are not marked for translation.

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 />