[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (C) 2009 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 332 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ProfileModel:: (9 methods):
__construct()
getData()
getForm()
loadFormData()
preprocessForm()
populateState()
save()
getTwofactorform()
getOtpConfig()
Class: ProfileModel - X-Ref
Profile model class for Users.__construct($config = array() X-Ref |
Constructor. param: array $config An array of configuration options (name, state, dbo, table_path, ignore_request). param: MVCFactoryInterface $factory The factory. param: FormFactoryInterface $formFactory The form factory. |
getData() X-Ref |
Method to get the profile form data. The base form data is loaded and then an event is fired for users plugins to extend the data. return: User |
getForm($data = array() X-Ref |
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. 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|bool A Form object on success, false on failure |
loadFormData() X-Ref |
Method to get the data that should be injected in the form. return: mixed The data for the form. |
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 |
save($data) X-Ref |
Method to save the form data. param: array $data The form data. return: mixed The user id on success, false on failure. |
getTwofactorform($userId = null) X-Ref |
Gets the configuration forms for all two-factor authentication methods in an array. param: integer $userId The user ID to load the forms for (optional) return: array |
getOtpConfig($userId = null) X-Ref |
No longer used param: integer $userId Ignored return: \stdClass |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |