![]() |
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) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__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) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
![]() | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
preprocessForm (Form $form, $data, $group='user') | |
populateState () | |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Membres hérités additionnels | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
$events_map = null | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
![]() | |
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.