Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct (&$subject, $config) | |
onContentPrepareForm ($form, $data) | |
onUserBeforeSave ($user, $isNew, $data) | |
onUserAfterSave ($data, $isNew, $result, $error) | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
Fonctions membres publiques hérités de JEvent | |
__construct (&$subject) | |
update (&$args) | |
Attributs protégés | |
$autoloadLanguage = true | |
$app | |
$db | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
Attributs protégés hérités de JEvent | |
$_subject = null | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
An example custom terms and conditions plugin.
__construct | ( | & | $subject, |
$config | |||
) |
Constructor
object | &$subject | The object to observe |
array | $config | An array that holds the plugin configuration |
Références $config, $subject, et FormHelper\addFieldPath().
onContentPrepareForm | ( | $form, | |
$data | |||
) |
Adds additional fields to the user registration form
JForm | $form | The form to be altered. |
mixed | $data | The associated data for the form. |
Références $form, $name, et Form\addFormPath().
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, $message, $userId, ArrayHelper\getValue(), JPATH_ADMINISTRATOR, et JLoader\register().
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. |
Références $form, $option, $task, $user, $userId, et ArrayHelper\getValue().
|
protected |
|
protected |
|
protected |