[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_users/src/Model/ -> ResetModel.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 510 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ResetModel:: (9 methods):
  getForm()
  getResetCompleteForm()
  getResetConfirmForm()
  preprocessForm()
  populateState()
  processResetComplete()
  processResetConfirm()
  processResetRequest()
  checkResetLimit()


Class: ResetModel  - X-Ref

Reset model class for Users.

getForm($data = array()   X-Ref
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.

param: array    $data      An optional array of data for the form to interrogate.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: Form  A Form object on success, false on failure

getResetCompleteForm($data = array()   X-Ref
Method to get the password reset complete form.

param: array    $data      Data for the form.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: Form    A Form object on success, false on failure

getResetConfirmForm($data = array()   X-Ref
Method to get the password reset confirm form.

param: array    $data      Data for the form.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: Form  A Form object on success, false on failure

preprocessForm(Form $form, $data, $group = 'user')   X-Ref
Override preprocessForm to load the user plugin group instead of content.

param: Form    $form   A Form object.
param: mixed   $data   The data expected for the form.
param: string  $group  The name of the plugin group to import (defaults to "content").
return: void

populateState()   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

return: void

processResetComplete($data)   X-Ref
Save the new password after reset is done

param: array  $data  The data expected for the form.
return: mixed  \Exception | boolean

processResetConfirm($data)   X-Ref
Receive the reset password request

param: array  $data  The data expected for the form.
return: mixed  \Exception | boolean

processResetRequest($data)   X-Ref
Method to start the password reset process.

param: array  $data  The data expected for the form.
return: mixed  \Exception | boolean

checkResetLimit($user)   X-Ref
Method to check if user reset limit has been exceeded within the allowed time period.

param: User  $user  User doing the password reset
return: boolean true if user can do the reset, false if limit exceeded



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer