Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getState () | |
register ($event, $handler) | |
trigger ($event, $args=array()) | |
attach ($observer) | |
detach ($observer) | |
Fonctions membres publiques statiques | |
static | getInstance () |
Attributs protégés | |
$_observers = array() | |
$_state = null | |
$_methods = array() | |
Attributs protégés statiques | |
static | $instance = null |
Class to handle dispatching of events.
This is the Observable part of the Observer design pattern for the event architecture.
joomla/event
package attach | ( | $observer | ) |
detach | ( | $observer | ) |
Detach an observer object
object | $observer | An observer object to detach. |
Références $key.
|
static |
Returns the global Event Dispatcher object, only creating it if it doesn't already exist.
Références null.
Référencé par UsersModelUser\activate(), Authentication\authorise(), FinderControllerIndexer\batch(), ContentModelArticle\batchMove(), UsersModelUser\block(), ContactModelContact\buildContactExtendedData(), FieldsModelField\checkDefaultValue(), CheckinModelCheckin\checkin(), Table\checkIn(), ConfigModelCms\cleanCache(), ContentModelArticle\cleanupPostBatchCopy(), CategoryView\commonCategoryDisplay(), PackageAdapter\copyBaseFiles(), MediaControllerFolder\create(), MediaControllerFolder\delete(), FinderModelMaps\delete(), FinderModelIndex\delete(), TemplatesModelStyle\delete(), UsersModelGroup\delete(), MediaControllerFile\delete(), MenusModelMenu\delete(), ModulesModelModule\delete(), UsersModelUser\delete(), AdminModel\delete(), User\delete(), Installer\discover_install(), InstallerViewInstall\display(), ContentViewArchive\display(), ContentViewArticle\display(), UsersViewProfile\display(), MenusViewItems\display(), ContentViewFeatured\display(), ContactViewContact\display(), ContentViewCategory\display(), TagsViewTag\display(), InstallerHelper\downloadPackage(), TemplatesModelStyle\duplicate(), SearchModelSearch\getAreas(), PlgSystemCache\getCacheKey(), ContactModelContact\getContactQuery(), FinderIndexerHelper\getContentExtras(), SearchModelSearch\getData(), UsersModelRegistration\getData(), FieldsHelper\getFields(), FieldsHelper\getFieldTypes(), UsersModelNote\getItem(), PlgSystemStatsFormFieldData\getLayoutData(), ModSampledataHelper\getList(), UserHelper\getProfile(), AuthenticationHelper\getTwoFactorMethods(), MenusModelMenutypes\getTypeOptions(), PluginHelper\import(), PluginHelper\importPlugin(), FinderCli\index(), InstallerModelInstall\install(), Installer\install(), PlgSystemCache\isExcluded(), BaseApplication\loadDispatcher(), PlgSystemCache\onAfterInitialise(), PlgContentFinder\onCategoryChangeState(), PlgContentFinder\onContentAfterDelete(), PlgContentFinder\onContentAfterSave(), PlgContentFinder\onContentBeforeSave(), PlgContentFinder\onContentChangeState(), PlgEditorCodemirror\onDisplay(), PlgEditorCodemirror\onInit(), JHtmlContent\prepare(), FinderIndexerHelper\prepareContent(), JAdminCssMenu\preprocess(), ConfigModelForm\preprocessData(), FormModel\preprocessData(), ConfigModelForm\preprocessForm(), FormModel\preprocessForm(), ListModel\preprocessForm(), UsersModelRemind\processRemindRequest(), InstallerModelManage\publish(), FinderModelMaps\publish(), FinderModelIndex\publish(), CategoriesModelCategory\publish(), AdminModel\publish(), InstallerModelUpdatesites\rebuild(), ConfigModelApplication\removeroot(), ModulesRenderer\render(), FOFIntegrationJoomlaPlatform\runPlugins(), ConfigModelApplication\save(), ConfigModelComponent\save(), LanguagesModelLanguage\save(), MenusModelMenu\save(), TagsModelTag\save(), TemplatesModelStyle\save(), CategoriesModelCategory\save(), User\save(), ModulesModelModule\save(), AdminModel\save(), MenusModelItem\save(), FinderControllerIndexer\start(), ContactControllerContact\submit(), Installer\uninstall(), Installer\update(), MediaControllerFile\upload(), et FormModel\validate().
getState | ( | ) |
register | ( | $event, | |
$handler | |||
) |
Registers an event handler to the event dispatcher
string | $event | Name of the event to register handler for |
string | $handler | Name of the event handler |
InvalidArgumentException |
Références elseif.
trigger | ( | $event, | |
$args = array() |
|||
) |
Triggers an event by dispatching arguments to all observers that handle the event and returning their return values.
string | $event | The event to trigger. |
array | $args | An array of arguments. |
|
protected |
|
protected |
|
protected |
|
staticprotected |