UsersModelRegistration
class UsersModelRegistration extends JModelForm
Registration model class for Users.
Methods
Sets a default value if not alreay assigned
Returns a property of the object or the default value if the property is not set.
Returns an associative array of object properties.
Get the most recent error message.
Modifies a property of the object, creating it if it does not already exist.
Set the object properties based on a named array/hash.
Add a directory where JModel should search for models. You may either pass a string or an array of directories.
Adds to the stack of model table paths in LIFO order.
Returns a Model object, always creating it
Method to get model state variables
Method to get a table object, load it if necessary.
Method to set model state variables
Method to get the registration form.
Method to validate the form data.
Method to activate a user account.
Method to get the registration form data.
Method to save the form data.
Details
in JObject at line 56
string
__toString()
Magic method to convert the object to a string gracefully.
in JObject at line 70
mixed
def(string $property, mixed $default = null)
Sets a default value if not alreay assigned
in JObject at line 88
mixed
get(string $property, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in JObject at line 107
array
getProperties(boolean $public = true)
Returns an associative array of object properties.
in JObject at line 133
string
getError(integer $i = null, boolean $toString = true)
Get the most recent error message.
in JObject at line 165
array
getErrors()
Return all errors, if any.
in JObject at line 180
mixed
set(string $property, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in JObject at line 198
boolean
setProperties(mixed $properties)
Set the object properties based on a named array/hash.
in JObject at line 222
void
setError(string $error)
Add an error message.
in JObject at line 235
string
toString()
deprecated
deprecated
in JModel at line 84
static array
addIncludePath(mixed $path = '', string $prefix = '')
Add a directory where JModel should search for models. You may either pass a string or an array of directories.
in JModel at line 123
static void
addTablePath(mixed $path)
Adds to the stack of model table paths in LIFO order.
in JModel at line 161
static mixed
getInstance(string $type, string $prefix = '', array $config = array())
Returns a Model object, always creating it
in JModel at line 341
string
getName()
Method to get the model name
The model name. By default parsed using the classname or it can be set by passing a $config['name'] in the class constructor
in JModel at line 365
object
getState(string $property = null, mixed $default = null)
Method to get model state variables
in JModel at line 388
JTable
getTable(string $name = '', string $prefix = 'Table', array $options = array())
Method to get a table object, load it if necessary.
in JModel at line 427
void
setDbo(object $db)
Method to set the database connector object
in JModel at line 441
mixed
setState(string $property, mixed $value = null)
Method to set model state variables
in JModelForm at line 44
boolean
checkin(integer $pk = null)
Method to checkin a row.
in JModelForm at line 81
boolean
checkout(integer $pk = null)
Method to check-out a row for editing.
at line 273
mixed
getForm(array $data = array(), boolean $loadData = true)
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.
in JModelForm at line 240
mixed
validate(object $form, array $data, string $group = null)
Method to validate the form data.
at line 38
mixed
activate(string $token)
Method to activate a user account.
at line 204
mixed
getData()
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.
at line 339
mixed
register(array $temp)
Method to save the form data.