Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onContentPrepareData ($context, $data) | |
onContentPrepareForm (Form $form, $data) | |
onUserBeforeSave ($user, $isnew, $data) | |
onUserAfterSave ($data, $isNew, $result, $error) | |
onUserAfterDelete ($user, $success, $msg) | |
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 | url ($value) |
static | calendar ($value) |
static | dob ($value) |
static | tos ($value) |
Attributs protégés | |
$app | |
$db | |
$autoloadLanguage = true | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Attributs privés | |
$date = '' | |
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 profile plugin.
|
static |
|
static |
onContentPrepareData | ( | $context, | |
$data | |||
) |
onContentPrepareForm | ( | Form | $form, |
$data | |||
) |
onUserAfterDelete | ( | $user, | |
$success, | |||
$msg | |||
) |
Remove all user profile 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 |
Références $db, $query, $user, $userId, ArrayHelper\getValue(), et ParameterType\INTEGER.
onUserAfterSave | ( | $data, | |
$isNew, | |||
$result, | |||
$error | |||
) |
Saves user profile data
array | $data | entered user data |
boolean | $isNew | true if this is a new user |
boolean | $result | true if saving the user worked |
string | $error | error message |
Références $data, $date, $db, $key, $query, $result, $userId, ArrayHelper\getValue(), ParameterType\INTEGER, et ParameterType\STRING.
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 invalid date. |
Références $data, $date, $option, $task, Text\_(), et Date\getInstance().
|
static |
|
static |
Returns an anchor tag generated from a given value
string | $value | URL to use |
Références $value.
|
protected |
|
protected |
|
private |
|
protected |