Class UsersModelRegistration

Description

Registration model class for Users.

  • since: 1.6

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

JObject
   |
   --JModelLegacy
      |
      --JModelForm
         |
         --UsersModelRegistration
Variable Summary
 object The $data
Method Summary
 mixed activate (string $token)
 mixed getData ()
 JForm getForm ([array $data = array()], [boolean $loadData = true])
 mixed loadFormData ()
 void populateState ()
 void preprocessForm (JForm $form, mixed $data, [string $group = 'user'])
 mixed register (array $temp)
Variables
object The $data (line 25)
  • var: user registration 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
activate (line 36)

Method to activate a user account.

  • return: False on failure, user object on success.
  • since: 1.6
  • access: public
mixed activate (string $token)
  • string $token: The activation token.
getData (line 202)

Method to get the registration 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 260)

Method to get the registration 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.
loadFormData (line 279)

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 320)

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 300)

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

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

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

Method to save the form data.

  • return: The user id on success, false on failure.
  • since: 1.6
  • access: public
mixed register (array $temp)
  • array $temp: 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:41 +0100 by phpDocumentor 1.4.3