API16

JApplication/triggerEvent: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Calls all handlers associated with an event group. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JApplication/triggerEvent|Edit D...
 
m removing red link to edit, no existant pages
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JApplication/triggerEvent|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JApplication/triggerEvent}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 44: Line 44:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JApplication/triggerEvent|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JApplication/triggerEvent}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 59: Line 59:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

Revision as of 02:49, 13 May 2013

Description

Calls all handlers associated with an event group.

[<! removed edit link to red link >]

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

Syntax

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

Returns

array An array of results from each function call.

Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

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

<CodeExamplesForm />