Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getForm ($data=array(), $loadData=true) | |
getResetCompleteForm ($data=array(), $loadData=true) | |
getResetConfirmForm ($data=array(), $loadData=true) | |
processResetComplete ($data) | |
processResetConfirm ($data) | |
processResetRequest ($data) | |
checkResetLimit ($user) | |
Fonctions membres publiques hérités de FormModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques hérités de BaseDatabaseModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
Fonctions membres publiques hérités de BaseModel | |
__construct ($config=array()) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de StatefulModelInterface | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres publiques hérités de FormFactoryAwareInterface | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
preprocessForm (Form $form, $data, $group='user') | |
populateState () | |
Fonctions membres protégées hérités de BaseDatabaseModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Attributs protégés hérités de FormModel | |
$events_map = null | |
Attributs protégés hérités de BaseDatabaseModel | |
$option = null | |
$event_clean_cache = null | |
Attributs protégés hérités de BaseModel | |
$name | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Reset model class for Users.
checkResetLimit | ( | $user | ) |
Method to check if user reset limit has been exceeded within the allowed time period.
User | $user | User doing the password reset |
Références $params, $result, $user, elseif, Factory\getApplication(), et Factory\getDate().
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the password reset request 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. |
Implémente FormModelInterface.
Références $form, et Joomla\CMS\MVC\Model\loadForm().
getResetCompleteForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the password reset complete form.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Références $form, $options, et Joomla\CMS\MVC\Model\loadForm().
getResetConfirmForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the password reset confirm form.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Références $form, $options, Factory\getApplication(), et Joomla\CMS\MVC\Model\loadForm().
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Références $params, Factory\getApplication(), et Joomla\CMS\MVC\Model\setState().
|
protected |
Override preprocessForm to load the user plugin group instead of content.
Form | $form | A Form object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Références $data, $form, et Joomla\CMS\MVC\Model\preprocessForm().
processResetComplete | ( | $data | ) |
Save the new password after reset is done
array | $data | The data expected for the form. |
Références $app, $data, $form, $return, $user, $userId, Text\_(), Factory\getApplication(), User\getInstance(), null, et Text\sprintf().
processResetConfirm | ( | $data | ) |
Receive the reset password request
array | $data | The data expected for the form. |
Références $app, $data, $db, $form, $query, $return, $user, Text\_(), Factory\getApplication(), Joomla\Database\getDatabase(), et Text\sprintf().
processResetRequest | ( | $data | ) |
Method to start the password reset process.
array | $data | The data expected for the form. |
Références $app, $data, $db, $form, $link, $mode, $query, $return, $user, $userId, Text\_(), Route\_(), Log\add(), MailTemplate\addTemplateData(), PunycodeHelper\emailToPunycode(), UserHelper\genRandomPassword(), Factory\getApplication(), Joomla\Database\getDatabase(), ApplicationHelper\getHash(), User\getInstance(), UserHelper\hashPassword(), Text\plural(), Text\sprintf(), et Log\WARNING.