JUser
User class. Handles all application interaction with a user
Located in /libraries/joomla/user/user.php (line 19)
JObject (Subpackage Object)
![]()
JUser (Subpackage User)
string
$activation
= null (line 114)
Activation hash
integer
$block
= null (line 82)
Block status
string
$email
= null (line 58)
The email
array
$groups
= array() (line 130)
Associative array of user names => group ids
boolean
$guest
= null (line 138)
Guest status
integer
$id
= null (line 35)
Unique id
array
$instances
= array() (line 183)
boolean
$isRoot
= null (line 27)
A cached switch for if this user has root access rights.
datetime
$lastvisitDate
= null (line 106)
Date of last visit
string
$name
= null (line 42)
The users real name (or nickname)
string
$params
= null (line 122)
User parameters
string
$password
= null (line 66)
MD5 encrypted password
string
$password_clear
= '' (line 74)
Clear password, only available when a new password is set for a user
datetime
$registerDate
= null (line 98)
Date the user was registered
integer
$sendEmail
= null (line 90)
Should this user receive system email
string
$username
= null (line 50)
The login name
array
$_authActions
= null (line 169)
Authorised access actions
array
$_authGroups
= null (line 153)
Authorised access groups
array
$_authLevels
= null (line 161)
Authorised access levels
string
$_errorMsg
= null (line 177)
Error message
object
$_params
= null (line 145)
User parameters
Inherited Variables
Inherited from JObject
JObject::$_errors
Constructor activating the default information of the language
- integer $identifier: The primary key of the user to load (optional).
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Method to check JUser object authorisation against an access control object and optionally an access extension object
- string $action: The name of the action to check for permission.
- string $assetname: The name of the asset on which to perform the action.
Method to bind an associative array of data to a user object
- array &$array: The associative array to bind to the object
Method to set a default parameter if it does not exist
- string $key: Parameter key
- mixed $value: Parameter value
Method to return a list of all categories that a user has permission for a given action
- string $component: The component from which to retrieve the categories
- string $action: The name of the section within the component from which to retrieve the actions.
Gets an array of the authorised user groups
Gets an array of the authorised access levels for the user
Returns the global User object, only creating it if it doesn't already exist.
- integer $identifier: 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 user's 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 instantiate. 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 $id: The user id of the user to load
Method to save the JUser object to the database
- boolean $updateOnly: Save the object only if not a new user Currently only used in the user reset password method.
Pass through method to the table for setting the last visit date
- integer $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 $params: The user parameters object
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()

static
static