Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (&$subject, array $config=[], Authentication $authHelper=null) | |
getAuthenticationHelper () | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Fonctions membres publiques statiques | |
static | getSubscribedEvents () |
Attributs protégés | |
$autoloadLanguage = true | |
$allowLegacyListeners = false | |
$authenticationHelper | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
WebAuthn Passwordless Login plugin
The plugin features are broken down into Traits for the sole purpose of making an otherwise supermassive class somewhat manageable. You can find the Traits inside the Webauthn/PluginTraits folder.
__construct | ( | & | $subject, |
array | $config = [] , |
||
Authentication | $authHelper = null |
||
) |
Constructor. Loads the language files as well.
DispatcherInterface | $subject | The object to observe |
array | $config | An optional associative array of configuration settings. Recognized key values include 'name', 'group', 'params', 'language (this list is not meant to be comprehensive). |
Authentication | null | $authHelper | The WebAuthn helper object |
Note: Do NOT try to load the language in the constructor. This is called before Joomla initializes the application language. Therefore the temporary Joomla language object and all loaded strings in it will be destroyed on application initialization. As a result we need to call loadLanguage() in each method individually, even though all methods make use of language strings.
Références $config, $subject, Symfony\Contracts\Service\__construct(), Log\addLogger(), Log\ALERT, Log\ALL, Log\CRITICAL, Log\EMERGENCY, Log\ERROR, et JDEBUG.
getAuthenticationHelper | ( | ) |
|
static |
Returns an array of events this subscriber will listen to.
Implémente SubscriberInterface.
Références $app, et Factory\getApplication().
|
protected |
|
protected |
|
protected |