JUser
User class. Handles all application interaction with a user
Located in /joomla/user/user.php (line 28)
JObject (Subpackage Base)
JUser (Subpackage User)
Description
Description
Description
The email
The group id number
Description
Unique id
Description
The users real name (or nickname)
Description
MD5 encrypted password
Clear password, only available when a new password is set for a user
Description
Description
The login name
Description
Error message
User parameters
Inherited Variables
Inherited from JObject
JObject::$_errors
Constructor activating the default information of the language
- $identifier
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Method to check JUser object authorization against an access control object and optionally an access extension object
- string $acoSection: The ACO section value
- string $aco: The ACO value
- string $axoSection: The AXO section value [optional]
- string $axo: The AXO value [optional]
Method to bind an associative array of data to a user object
- array $array: The associative array to bind to the object
- &$array
Method to set a default parameter if it does not exist
- string $key: Parameter key
- mixed $value: Parameter value
Method to delete the JUser object from the database
- boolean $updateOnly: Save the object only if not a new user
Returns a reference to the global User object, only creating it if it doesn't already exist.
This method must be invoked as:
$user =& JUser::getInstance($id);
- int $id: The user to load - Can be an integer or string - If string, it is converted to ID automatically.
Method to get a parameter value
- string $key: Parameter key
- mixed $default: Parameter default value
Method to get the user parameters
This function tries to load an xml file based on the users usertype. The filename of the xml file is the same as the usertype. The functionals has a static variable to store the parameters setup file base path. You can call this function statically to set the base path if needed.
- boolean $loadsetupfile: If true, loads the parameters setup file. Default is false.
- path $path: Set the parameters setup file base path to be used to load the user parameters.
Method to get the user table object
This function uses a static variable to store the table name of the user table to it instantiates. You can call this function statically to set the table name if needed.
- string $type: The user table name to be used
- string $prefix: The user table prefix to be used
Method to load a JUser object by user id number
- mixed $identifier: The user id of the user to load
- string $path: Path to a parameters xml file
- $id
Method to save the JUser object to the database
- boolean $updateOnly: Save the object only if not a new user
Pass through method to the table for setting the last visit date
- int $timestamp: The timestamp, defaults to 'now'
Method to set a parameter
- string $key: Parameter key
- mixed $value: Parameter value
Method to get the user parameters
- object The $params: user parameters object
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Cap comentari:
Publica un comentari a l'entrada