API16

JApplication/triggerEvent

From Joomla! Documentation

< API16:JApplication
Revision as of 21:49, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

The "API16" 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]

Calls all handlers associated with an event group.

[<! removed edit link to red link >]

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

Syntax[edit]

triggerEvent($event, $args=null)
Parameter Name Default Value Description
$event The event name.
$args null An array of arguments.

Returns[edit]

array An array of results from each function call.

Defined in[edit]

libraries/joomla/application/application.php

Importing[edit]

jimport( 'joomla.application.application' );

Source Body[edit]

function triggerEvent($event, $args=null)
{
        $dispatcher = &JDispatcher::getInstance();
        return $dispatcher->trigger($event, $args);
}

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

Examples[edit]

<CodeExamplesForm />