Class UsersModelProfile

Description

Profile model class for Users.

  • since: 1.6

Located in /components/com_users/models/profile.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelForm
         |
         --UsersModelProfile
Variable Summary
 object The $data
Method Summary
 UsersModelProfile __construct ([ $config = array()])
 boolean checkin ([integer $userId = null])
 boolean checkout ([integer $userId = null])
 mixed getData ()
 JForm getForm ([array $data = array()], [boolean $loadData = true])
 void getOtpConfig ([ $user_id = null])
 array getTwofactorform ([integer $user_id = null])
 mixed loadFormData ()
 void populateState ()
 void preprocessForm (JForm $form, mixed $data, [ $group = 'user'])
 mixed save (array $data)
Variables
object The $data (line 25)
  • var: user profile data.
  • since: 1.6
  • access: protected

Inherited Variables

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModelLegacy

JModelLegacy::$event_clean_cache
JModelLegacy::$name
JModelLegacy::$option
JModelLegacy::$state
JModelLegacy::$_db
JModelLegacy::$__state_set

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 27)
  • access: public
UsersModelProfile __construct ([ $config = array()])
  • $config

Redefinition of:
JModelLegacy::__construct()
Constructor
checkin (line 49)

Method to check in a user.

  • return: True on success, false on failure.
  • since: 1.6
  • access: public
boolean checkin ([integer $userId = null])
  • integer $userId: The id of the row to check out.

Redefinition of:
JModelForm::checkin()
Method to checkin a row.
checkout (line 77)

Method to check out a user for editing.

  • return: True on success, false on failure.
  • since: 1.6
  • access: public
boolean checkout ([integer $userId = null])
  • integer $userId: The id of the row to check out.

Redefinition of:
JModelForm::checkout()
Method to check-out a row for editing.
getData (line 110)

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: Data object on success, false on failure.
  • since: 1.6
  • access: public
mixed getData ()
getForm (line 166)

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.

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
JForm getForm ([array $data = array()], [boolean $loadData = true])
  • array $data: An optional array of data for the form to interogate.
  • boolean $loadData: True if the form is to load its own data (default case), false if not.

Redefinition of:
JModelForm::getForm()
Abstract method for getting the form from the model.
getOtpConfig (line 390)
  • access: public
void getOtpConfig ([ $user_id = null])
  • $user_id
getTwofactorform (line 378)

Gets the configuration forms for all two-factor authentication methods in an array.

  • access: public
array getTwofactorform ([integer $user_id = null])
  • integer $user_id: The user ID to load the forms for (optional)
loadFormData (line 206)

Method to get the data that should be injected in the form.

  • return: The data for the form.
  • since: 1.6
  • access: protected
mixed loadFormData ()

Redefinition of:
JModelForm::loadFormData()
Method to get the data that should be injected in the form.
populateState (line 243)

Method to auto-populate the model state.

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

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
JModelLegacy::populateState()
Method to auto-populate the model state.
preprocessForm (line 223)

Override preprocessForm to load the user plugin group instead of content.

  • throws: Exception if there is an error in the form event.
  • since: 1.6
  • access: protected
void preprocessForm (JForm $form, mixed $data, [ $group = 'user'])
  • object A $form: form object.
  • mixed $data: The data expected for the form.
  • $group

Redefinition of:
JModelForm::preprocessForm()
Method to allow derived classes to preprocess the form.
save (line 266)

Method to save the form data.

  • return: The user id on success, false on failure.
  • since: 1.6
  • access: public
mixed save (array $data)
  • array $data: The form data.

Inherited Methods

Inherited From JModelForm

 JModelForm::checkin()
 JModelForm::checkout()
 JModelForm::getForm()
 JModelForm::loadForm()
 JModelForm::loadFormData()
 JModelForm::preprocessData()
 JModelForm::preprocessForm()
 JModelForm::validate()

Inherited From JModelLegacy

 JModelLegacy::__construct()
 JModelLegacy::addIncludePath()
 JModelLegacy::addTablePath()
 JModelLegacy::cleanCache()
 JModelLegacy::getDbo()
 JModelLegacy::getInstance()
 JModelLegacy::getName()
 JModelLegacy::getState()
 JModelLegacy::getTable()
 JModelLegacy::loadHistory()
 JModelLegacy::populateState()
 JModelLegacy::setDbo()
 JModelLegacy::setState()
 JModelLegacy::_createFileName()
 JModelLegacy::_createTable()
 JModelLegacy::_getList()
 JModelLegacy::_getListCount()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:11:18 +0100 by phpDocumentor 1.4.3