Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (&$subject, $config) | |
onAfterInitialise () | |
onAfterRoute () | |
preprocessBuildRule (&$router, &$uri) | |
buildRule (&$router, &$uri) | |
postprocessSEFBuildRule (&$router, &$uri) | |
postprocessNonSEFBuildRule (&$router, &$uri) | |
parseRule (&$router, &$uri) | |
onPrivacyCollectAdminCapabilities () | |
onUserBeforeSave ($user, $isnew, $new) | |
onUserAfterSave ($user, $isnew, $success, $msg) | |
onUserLogin ($user, $options=array()) | |
onAfterDispatch () | |
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 () | |
Attributs protégés | |
$mode_sef | |
$sefs | |
$lang_codes | |
$current_lang | |
$default_lang | |
$app | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
setLanguageCookie ($languageCode) | |
getLanguageCookie () | |
Attributs privés | |
$user_lang_code | |
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 () | |
Joomla! Language Filter Plugin.
__construct | ( | & | $subject, |
$config | |||
) |
Constructor.
object | &$subject | The object to observe |
array | $config | An optional associative array of configuration settings. |
Références $config, $language, $subject, $this, et Symfony\Contracts\Service\__construct().
buildRule | ( | & | $router, |
& | $uri | ||
) |
|
private |
onAfterDispatch | ( | ) |
Method to add alternative meta tags for associated menu items.
Références $active, $component, $doc, $i, $item, $language, $languages, $menu, $option, class, MenusHelper\getAssociations(), Joomla\DI\getContainer(), Uri\getInstance(), JPATH_SITE, et JLoader\register().
onAfterInitialise | ( | ) |
onAfterRoute | ( | ) |
After route.
onPrivacyCollectAdminCapabilities | ( | ) |
Reports the privacy related capabilities for this plugin to site administrators.
onUserAfterSave | ( | $user, | |
$isnew, | |||
$success, | |||
$msg | |||
) |
After store user method.
Method is called after user data is stored in the database.
array | $user | Holds the new user data. |
boolean | $isnew | True if a new user is stored. |
boolean | $success | True if user was successfully stored in the database. |
string | $msg | Message. |
onUserBeforeSave | ( | $user, | |
$isnew, | |||
$new | |||
) |
Before store user method.
Method is called before user data is stored in the database.
array | $user | Holds the old user data. |
boolean | $isnew | True if a new user is stored. |
array | $new | Holds the new user data. |
Références $user.
onUserLogin | ( | $user, | |
$options = array() |
|||
) |
Method to handle any login logic and report back to the subject.
array | $user | Holds the user data. |
array | $options | Array holding options (remember, autoregister, group). |
Looking for associations. If the login menu item form contains an internal URL redirection, This will override the automatic change to the user preferred site language. In that case we use the redirect as defined in the menu item. Otherwise we redirect, when available, to the user preferred site language.
The login form does not contain a menu item redirection. The active menu item has associations. We redirect to the user preferred site language associated page.
Références $active, $assoc, $item, $menu, $uri, $user, class, elseif, MenusHelper\getAssociations(), Joomla\DI\getContainer(), et JPATH_SITE.
parseRule | ( | & | $router, |
& | $uri | ||
) |
Add parse rule to router.
Router | &$router | Router object. |
Uri | &$uri | Uri object. |
Références $extension, $lang, $language, $parts, $path, $redirectUri, $uri, Language\getInstance(), JPATH_ADMINISTRATOR, et JPATH_PLUGINS.
postprocessNonSEFBuildRule | ( | & | $router, |
& | $uri | ||
) |
postprocessSEFBuildRule | ( | & | $router, |
& | $uri | ||
) |
postprocess build rule for SEF URLs
Router | &$router | Router object. |
Uri | &$uri | Uri object. |
Références $uri.
preprocessBuildRule | ( | & | $router, |
& | $uri | ||
) |
|
private |
Set the language cookie
string | $languageCode | The language code for which we want to set the cookie |
Références true.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |