Creating a Plugin for Joomla/fr: Difference between revisions
From Joomla! Documentation
Created page with "===Qu'est-ce qu'un plugin ?===" |
Created page with "===Tutoriels Développeur===" |
||
| Line 5: | Line 5: | ||
{{Chunk:Plugin/en}} | {{Chunk:Plugin/en}} | ||
=== | ===Tutoriels Développeur=== | ||
{{other versions/navbox/en|The '''{{PAGENAME}}''' Tutorial is available in these versions:-|version}} | {{other versions/navbox/en|The '''{{PAGENAME}}''' Tutorial is available in these versions:-|version}} | ||
[[Category:Tutorials]][[Category:Plugin Development]] | [[Category:Tutorials]][[Category:Plugin Development]] | ||
[[Category:Development Recommended Reading]] | [[Category:Development Recommended Reading]] | ||
</noinclude> | </noinclude> | ||
Revision as of 04:01, 1 September 2020
Qu'est-ce qu'un plugin ?
A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events. Joomla provides a set of core plugin events, but any extension can fire (custom) events. When a particular event occurs, all plugin functions of the type associated with the event are executed in sequence. This is a powerful way of extending the functionality of Joomla. It also offers extension developers a way to allow other extensions to respond to their actions, making extensions extensible.
The Joomla! plugin architecture follows the Observer design pattern. The JPlugin class provides the means to register custom plugin code with core or custom events. The JEventDispatcher class is an event handler which calls all plugins registered for a particular event, when that event is triggered. In Joomla 4.x this has been moved to the \Joomla\Event\Dispatcher class in Joomla, and additionally follows the Mediator design pattern
See also: Component, Module, Template
Tutoriels Développeur
| |||||||
