Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onContentPrepareForm (Form $form, $data) | |
onUserBeforeSave ($user, $isNew, $data) | |
onUserAfterDelete ($user, $success, $msg) | |
onAfterRoute () | |
onPrivacyCheckPrivacyPolicyPublished (&$policy) | |
onAfterRender () | |
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 | |
$autoloadLanguage = true | |
$app | |
$db | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
getRedirectMessage () | |
isUserConsented ($userId) | |
getPrivacyArticleId () | |
getPrivacyItemId () | |
remindExpiringConsents () | |
clearCacheGroups (array $clearGroups, array $cacheClients=[0, 1]) | |
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 () | |
An example custom privacyconsent plugin.
|
private |
Clears cache groups. We use it to clear the plugins cache after we update the last run timestamp.
array | $clearGroups | The cache groups to clean |
array | $cacheClients | The cache clients (site, admin) to clean |
Références $options, JPATH_ADMINISTRATOR, et JPATH_SITE.
|
private |
Get privacy article ID. If the site is a multilingual website and there is associated article for the current language, ID of the associated article will be returned
|
private |
Get privacy menu item ID. If the site is a multilingual website and there is associated menu item for the current language, ID of the associated menu item will be returned.
Références $itemId.
|
private |
Returns the configured redirect message and falls back to the default version.
|
private |
onAfterRender | ( | ) |
onAfterRoute | ( | ) |
onContentPrepareForm | ( | Form | $form, |
$data | |||
) |
onPrivacyCheckPrivacyPolicyPublished | ( | & | $policy | ) |
Event to specify whether a privacy policy has been published.
array | &$policy | The privacy policy status data, passed by reference, with keys "published", "editLink" and "articlePublished". |
Références $article, $articleId, et $query.
onUserAfterDelete | ( | $user, | |
$success, | |||
$msg | |||
) |
Remove all user privacy consent information for the given user ID
Method is called after user data is deleted from the database
array | $user | Holds the user data |
boolean | $success | True if user was successfully stored in the database |
string | $msg | Message |
onUserBeforeSave | ( | $user, | |
$isNew, | |||
$data | |||
) |
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 | $data | Holds the new user data. |
InvalidArgumentException | on missing required data. |
|
private |
|
protected |
|
protected |
|
protected |