Actions

API17

JDispatcher::trigger

From Joomla! Documentation

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDispatcher::trigger

Description

Triggers an event by dispatching arguments to all observers that handle the event and returning their return values.

Description:JDispatcher::trigger [Edit Descripton]

public function trigger (
        $event
        $args=array
)
Parameter Type Default Description
$event string The event to trigger.
$args array array() An array of arguments.
  • Returns array An array of results from each function call.
  • Defined on line 86 of libraries/joomla/event/dispatcher.php
  • Since Joomla 11.1

See also

SeeAlso:JDispatcher::trigger [Edit See Also]

User contributed notes

<CodeExamplesForm />