Class JUser
User class. Handles all application interaction with a user
- JObject
- JUser
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 11.1
Located at joomla/user/user.php
Methods summary
public
|
#
__construct( integer $identifier = 0,
Constructor activating the default information of the language |
public static
|
#
getInstance( integer $identifier = 0,
Returns the global User object, only creating it if it doesn't already exist. |
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
boolean
|
|
public
array
|
#
getAuthorisedCategories( string $component, string $action )
Method to return a list of all categories that a user has permission for a given action |
public
array
|
|
public
array
|
|
public
|
|
public
boolean
|
#
setLastVisit( integer $timestamp = null )
Pass through method to the table for setting the last visit date |
public
object
|
|
public
|
|
public
|
|
public static
object
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
|
Methods inherited from JObject
__toString()
,
def()
,
get()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Properties summary
protected
boolean
|
$isRoot |
#
A cached switch for if this user has root access rights. |
public
integer
|
$id |
#
Unique id |
public
string
|
$name |
#
The user's real name (or nickname) |
public
string
|
$username |
#
The login name |
public
string
|
#
The email |
|
public
string
|
$password |
#
MD5 encrypted password |
public
string
|
$password_clear |
#
Clear password, only available when a new password is set for a user |
public
integer
|
$block |
#
Block status |
public
integer
|
$sendEmail |
#
Should this user receive system email |
public
datetime
|
$registerDate |
#
Date the user was registered |
public
datetime
|
$lastvisitDate |
#
Date of last visit |
public
string
|
$activation |
#
Activation hash |
public
|
$params |
#
User parameters |
public
array
|
$groups |
#
Associative array of user names => group ids |
public
boolean
|
$guest |
#
Guest status |
public
string
|
$lastResetTime |
#
Last Reset Time |
public
integer
|
$resetCount |
#
Count since last Reset Time |
public
integer
|
$requireReset |
#
Flag to require the user's password be reset |
protected
|
$_params |
#
User parameters |
protected
array
|
$_authGroups |
#
Authorised access groups |
protected
array
|
$_authLevels |
#
Authorised access levels |
protected
array
|
$_authActions |
#
Authorised access actions |
protected
string
|
$_errorMsg |
#
Error message |
protected
|
$userHelper |
#
JUserWrapperHelper object |
protected static
array
|
$instances |
#
JUser instances container. |