Difference between revisions of "JApplication::triggerEvent"
From Joomla! Documentation
m (clean up) |
m (preparing for archive only) |
||
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"> | ||
Line 38: | Line 38: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | ||
* [[API17:JApplication::triggerEvent|Other versions of JApplication::triggerEvent]] | * [[API17:JApplication::triggerEvent|Other versions of JApplication::triggerEvent]] | ||
− | + | ||
===User contributed notes=== | ===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=* |
Latest revision as of 21:19, 24 March 2017
The "API17" 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.
JApplication::triggerEvent[edit]
Description[edit]
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[edit]
- JApplication::triggerEvent source code on BitBucket
- Class JApplication
- Subpackage Application
- Other versions of JApplication::triggerEvent
User contributed notes[edit]
Code Examples[edit]