User
class User extends JObject
User class. Handles all application interaction with a user
Properties
integer | $id | Unique id | |
string | $name | The user's real name (or nickname) | |
string | $username | The login name | |
string | The email | ||
string | $password | MD5 encrypted password | |
string | $password_clear | Clear password, only available when a new password is set for a user | |
integer | $block | Block status | |
integer | $sendEmail | Should this user receive system email | |
DateTime | $registerDate | Date the user was registered | |
DateTime | $lastvisitDate | Date of last visit | |
string | $activation | Activation hash | |
Registry | $params | User parameters | |
array | $groups | Associative array of user names => group ids | |
integer | $guest | Guest status | |
string | $lastResetTime | Last Reset Time | |
int | $resetCount | Count since last Reset Time | |
int | $requireReset | Flag to require the user's password be reset |
Methods
Constructor activating the default information of the language
Returns the global User object, only creating it if it doesn't already exist.
Method to get a parameter value
Method to set a parameter
Method to set a default parameter if it does not exist
Method to check User object authorisation against an access control object and optionally an access extension object
Method to return a list of all categories that a user has permission for a given action
Gets an array of the authorised access levels for the user
Gets an array of the authorised user groups
Clears the access rights cache of this user
Pass through method to the table for setting the last visit date
Method to get the user parameters
Method to get the user timezone.
Method to get the user parameters
Method to get the user table object
Method to bind an associative array of data to a user object
Method to save the User object to the database
Method to delete the User object from the database
Method to load a User object by user id number
Method to allow serialize the object with minimal properties.
Method to recover the full object on unserialize.
Details
__construct(
integer $identifier,
UserWrapper $userHelper = null)
Constructor activating the default information of the language
static
User
getInstance(
integer $identifier,
UserWrapper $userHelper = null)
Returns the global User object, only creating it if it doesn't already exist.
boolean
authorise(
string $action,
string $assetname = null)
Method to check User object authorisation against an access control object and optionally an access extension object
array
getAuthorisedCategories(
string $component,
string $action)
Method to return a list of all categories that a user has permission for a given action
boolean
setLastVisit(
integer $timestamp = null)
Pass through method to the table for setting the last visit date
object
getParameters()
Method to get the user parameters
This method used to load the user parameters from a file.
DateTimeZone
getTimezone()
Method to get the user timezone.
If the user didn't set a timezone, it will return the server timezone