JApplication::triggerEvent: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Calls all handlers associated with an event group. | Calls all handlers associated with an event group. | ||
<source lang="php"> | <source lang="php"> | ||
public | public function triggerEvent ( | ||
$event | |||
$args=null | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 30: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' array An array of results from each function call. | |||
array An array of results from each function call. | * '''Defined''' on line 554 of libraries/joomla/application/application.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/application/application.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JApplication::triggerEvent source code''' on [[jplatform:application/application.php#cl-546|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JApplication|JApplication]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |||
* | * [[API17:JApplication::triggerEvent|Other versions of JApplication::triggerEvent]] | ||
* [[JApplication::triggerEvent|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JApplication::triggerEvent | category=JApplication::triggerEvent | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:19, 25 March 2017
JApplication::triggerEvent
Description
Calls all handlers associated with an event group.
public function triggerEvent (
$event
$args=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $event | string | The event name. | |
| $args | array | null | An array of arguments. |
- Returns array An array of results from each function call.
- Defined on line 554 of libraries/joomla/application/application.php
- Since

See also
JApplication::triggerEvent source code on BitBucket
Class JApplication
Subpackage Application- Other versions of JApplication::triggerEvent
User contributed notes
Code Examples