JUser
User class. Handles all application interaction with a user
Located in /joomla/user/user.php (line 29)
JObject (Subpackage Base)
![]()
JUser (Subpackage User)
boolean
authorize
(string $acoSection, string $aco, [string $axoSection = null], [string $axo = null])
string
$activation
= null (line 107)
Description
string
$aid
= null (line 119)
Description
int
$block
= null (line 77)
Description
string
$email
= null (line 53)
The email
int
$gid
= null (line 89)
The group id number
boolean
$guest
= null (line 125)
Description
int
$id
= null (line 35)
Unique id
datetime
$lastvisitDate
= null (line 101)
Description
string
$name
= null (line 41)
The users real name (or nickname)
string
$params
= null (line 113)
Description
string
$password
= null (line 59)
MD5 encrypted password
string
$password_clear
= '' (line 65)
Clear password, only available when a new password is set for a user
datetime
$registerDate
= null (line 95)
Description
int
$sendEmail
= null (line 83)
Description
string
$username
= null (line 47)
The login name
string
$usertype
= null (line 71)
Description
string
$_errorMsg
= null (line 137)
Error message
object
$_params
= null (line 131)
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()
Documentation generated on Tue, 29 Jan 2008 18:52:27 +0000 by phpDocumentor 1.3.1



