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 ($config=array()) | |
checkin ($userId=null) | |
checkout ($userId=null) | |
getData () | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
getTwofactorform ($userId=null) | |
getOtpConfig ($userId=null) | |
Fonctions membres protégées | |
loadFormData () | |
preprocessForm (JForm $form, $data, $group='user') | |
populateState () | |
Attributs protégés | |
$data | |
Profile model class for Users.
__construct | ( | $config = array() | ) |
Constructor
array | $config | An array of configuration options (name, state, dbo, table_path, ignore_request). |
Exception |
Références $config, JPATH_ADMINISTRATOR, et JLoader\register().
checkin | ( | $userId = null | ) |
Method to check in a user.
integer | $userId | The id of the row to check out. |
Références $userId.
checkout | ( | $userId = null | ) |
getData | ( | ) |
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the profile form.
The base form is loaded from XML and then an event is fired for users plugins to extend the form with extra fields.
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Références $form.
getOtpConfig | ( | $userId = null | ) |
Returns the one time password (OTP) – a.k.a. two factor authentication – configuration for a particular user.
integer | $userId | The numeric ID of the user |
Références $userId, et UsersModelUser\getOtpConfig().
getTwofactorform | ( | $userId = null | ) |
Gets the configuration forms for all two-factor authentication methods in an array.
integer | $userId | The user ID to load the forms for (optional) |
Références $userId, FOFPlatform\getInstance(), et UsersModelUser\getOtpConfig().
|
protected |
Method to get the data that should be injected in the form.
Références $data.
|
protected |
|
protected |
Override preprocessForm to load the user plugin group instead of content.
JForm | $form | A JForm object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Exception | if there is an error in the form event. |
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, $user, $userId, et FOFPlatform\getInstance().
|
protected |