◆ __construct()
__construct |
( |
& |
$subject, |
|
|
|
$config = array() |
|
) |
| |
◆ getApplication()
Returns the internal application or null when not set.
- Renvoie
- CMSApplicationInterface|null
- Depuis
- 4.2.0
Référencé par Joomla\getActionLogParams(), Joomla\onAfterDispatch(), Joomla\onAfterLogExport(), Joomla\onAfterLogPurge(), Joomla\onAfterPurge(), Joomla\onApplicationAfterSave(), Joomla\onContentAfterDelete(), Joomla\onContentAfterSave(), Joomla\onContentChangeState(), Joomla\onExtensionAfterDelete(), Joomla\onExtensionAfterInstall(), Joomla\onExtensionAfterSave(), Joomla\onExtensionAfterUninstall(), Joomla\onExtensionAfterUpdate(), Joomla\onJoomlaAfterUpdate(), Joomla\onUserAfterDelete(), Joomla\onUserAfterDeleteGroup(), Joomla\onUserAfterRemind(), Joomla\onUserAfterSave(), et Joomla\onUserAfterSaveGroup().
◆ loadLanguage()
Loads the plugin language file
- Paramètres
-
string | $extension | The extension for which a language file should be loaded |
string | $basePath | The basepath to use |
- Renvoie
- boolean True, if the file has successfully loaded.
- Depuis
- 1.5
Références $basePath, $extension, $lang, Factory\getLanguage(), et JPATH_PLUGINS.
◆ parameterImplementsEventInterface()
parameterImplementsEventInterface |
( |
\ReflectionParameter |
$parameter | ) |
|
|
private |
Checks if parameter is typehinted to accept .
- Paramètres
-
\ReflectionParameter | $parameter | |
- Renvoie
- boolean
- Depuis
- 4.0.0
Références $type, class, et null.
◆ registerLegacyListener()
registerLegacyListener |
( |
string |
$methodName | ) |
|
|
finalprotected |
Registers a legacy event listener, i.e. a method which accepts individual arguments instead of an AbstractEvent in its arguments. This provides backwards compatibility to Joomla! 3.x-style plugins.
This method will register lambda functions (closures) which try to unwrap the arguments of the dispatched Event into old style method arguments and call your on<Something> method with them. The result will be passed back to the Event, as an element into an array argument called 'result'.
- Paramètres
-
string | $methodName | The method name to register |
- Renvoie
- void
- Depuis
- 4.0.0
Références $methodName, $result, AbstractEvent\getArguments(), Joomla\CMS\Application\getDispatcher(), et null.
◆ registerListener()
registerListener |
( |
string |
$methodName | ) |
|
|
finalprotected |
Registers a proper event listener, i.e. a method which accepts an AbstractEvent as its sole argument. This is the preferred way to implement plugins in Joomla! 4.x and will be the only possible method with Joomla! 5.x onwards.
- Paramètres
-
string | $methodName | The method name to register |
- Renvoie
- void
- Depuis
- 4.0.0
Références $methodName, $this, et Joomla\CMS\Application\getDispatcher().
◆ setApplication()
◆ $_name
◆ $_type
◆ $allowLegacyListeners
$allowLegacyListeners = true |
|
protected |
◆ $application
◆ $autoloadLanguage
$autoloadLanguage = false |
|
protected |
◆ $params
La documentation de cette classe a été générée à partir du fichier suivant :