API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JDispatcher::__construct | ( | ) |
& JDispatcher::getInstance | ( | ) |
Returns a reference to the global Event Dispatcher object, only creating it if it doesn't already exist.
This method must be invoked as:
$dispatcher = &JDispatcher::getInstance();
public
Référencé par JPluginHelper::_import(), UserModelReset::completeReset(), JUser::delete(), ContentViewArticle::display(), SearchModelSearch::getAreas(), SearchModelSearch::getData(), ContentViewSection::getItem(), ContentViewFrontpage::getItem(), ContentViewCategory::getItem(), JHTMLContent::prepare(), JApplication::registerEvent(), JUser::save(), ContentModelArticle::store(), ContactController::submit(), et JApplication::triggerEvent().
JDispatcher::register | ( | $ | event, |
$ | handler | ||
) |
Registers an event handler to the event dispatcher
public
string | $event | Name of the event to register handler for |
string | $handler | Name of the event handler |
Références elseif, et JError::raiseWarning().
JDispatcher::trigger | ( | $ | event, |
$ | args = null , |
||
$ | doUnpublished = false |
||
) |
Triggers an event by dispatching arguments to all observers that handle the event and returning their return values.
public
string | $event | The event name |
array | $args | An array of arguments |
boolean | $doUnpublished | [DEPRECATED] |
Références elseif, et JError::raiseWarning().