Constructor activating the default information of the language
JUser
__construct
([mixed $id = null])
Redefinition of:
- 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
boolean
authorize
(string $acoSection, string $aco, [string $axoSection = null], [string $axo = null])
-
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
boolean
bind
(array &$array)
-
array
$array: The associative array to bind to the object
Method to set a default parameter if it does not exist
mixed
defParam
(string $key, mixed $value)
-
string
$key: Parameter key
-
mixed
$value: Parameter value
Overridden get method to get properties from the user model
mixed
get
(string $property, [mixed $default = null], mixed $value)
-
string
$property: The name of the property
-
mixed
$value: The value of the property to set
Redefinition of:
- JObject::get()
Method to get JUser error message
string
getError
()
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);
JUser
&getInstance
([
int $id =
'guest'])
-
int
$id: The user id to load.
Method to get a parameter value
mixed
getParam
(string $key, [mixed $default = null])
-
string
$key: Parameter key
-
mixed
$default: Parameter default value
Method to get the user parameters
object The
getParameters
()
Method to save the JUser object to the database
boolean
save
([boolean $updateOnly = false])
-
boolean
$updateOnly: Save the object only if not a new user
Overridden set method to pass properties on to the user model
void
set
(string $property, [mixed $value = null])
-
string
$property: The name of the property
-
mixed
$value: The value of the property to set
Redefinition of:
- JObject::set()
Method to set a parameter
mixed
setParam
(string $key, mixed $value)
-
string
$key: Parameter key
-
mixed
$value: Parameter value
Method to set the user parameters
void
setParameters
(string $data, [string $path = null])
-
string
$data: The paramters string in INI format
-
string
$path: Path to the parameters xml file [optional]
Method to load a JUser object by user id number
boolean
_load
(int $id, string $path)
-
int
$id: The user id for the user to load
-
string
$path: Path to a parameters xml file
Method to set an error message
void
_setError
(string $msg)
-
string
$msg: The message to append to the error message
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::JObject()
JObject::get()
JObject::set()
JObject::toString()
JObject::__destruct()