Liste de tous les membres
Fonctions membres publiques
Attributs publics
Documentation des constructeurs et destructeur
JUser::__construct |
( |
$ |
identifier = 0 | ) |
|
Constructor activating the default information of the language
protected
Documentation des fonctions membres
JUser::authorize |
( |
$ |
acoSection, |
|
|
$ |
aco, |
|
|
$ |
axoSection = null , |
|
|
$ |
axo = null |
|
) |
| |
Method to check JUser object authorization against an access control object and optionally an access extension object
public
- Paramètres:
-
string | $acoSection | The ACO section value |
string | $aco | The ACO value |
string | $axoSection | The AXO section value [optional] |
string | $axo | The AXO value [optional] |
- Renvoie:
- boolean True if authorized
- Depuis:
- 1.5
Références $acl, et JFactory::getACL().
Method to bind an associative array of data to a user object
public
- Paramètres:
-
array | $array | The associative array to bind to the object |
- Renvoie:
- boolean True on success
- Depuis:
- 1.5
Références $array, $db, $now, $params, $query, JText::_(), JUserHelper::genRandomPassword(), JUserHelper::getCryptedPassword(), JFactory::getDate(), JFactory::getDBO(), JArrayHelper::getValue(), jimport(), et params.
JUser::defParam |
( |
$ |
key, |
|
|
$ |
value |
|
) |
| |
Method to set a default parameter if it does not exist
public
- Paramètres:
-
string | $key | Parameter key |
mixed | $value | Parameter value |
- Renvoie:
- mixed Set parameter value
- Depuis:
- 1.5
& JUser::getInstance |
( |
$ |
id = 0 | ) |
|
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);
public
- Paramètres:
-
int | $id | The user to load - Can be an integer or string - If string, it is converted to ID automatically. |
- Renvoie:
- JUser The User object.
- Depuis:
- 1.5
Références $id, $user, JUserHelper::getUserId(), jimport(), et JError::raiseWarning().
Référencé par JUserHelper::activateUser(), UsersController::block(), UsersViewUser::display(), JFactory::getUser(), plgAuthenticationJoomla::onAuthenticate(), UsersController::remove(), et ContactController::submit().
JUser::getParam |
( |
$ |
key, |
|
|
$ |
default = null |
|
) |
| |
Method to get a parameter value
public
- Paramètres:
-
string | $key | Parameter key |
mixed | $default | Parameter default value |
- Renvoie:
- mixed The value or the default if it did not exist
- Depuis:
- 1.5
& JUser::getParameters |
( |
$ |
loadsetupfile = false , |
|
|
$ |
path = null |
|
) |
| |
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.
public
- Paramètres:
-
boolean | If true, loads the parameters setup file. Default is false. |
path | Set the parameters setup file base path to be used to load the user parameters. |
- Renvoie:
- object The user parameters object
- Depuis:
- 1.5
Références $file, $path, et $type.
& JUser::getTable |
( |
$ |
type = null , |
|
|
$ |
prefix = 'JTable' |
|
) |
| |
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.
public
- Paramètres:
-
string | The user table name to be used |
string | The user table prefix to be used |
- Renvoie:
- object The user table object
- Depuis:
- 1.5
Références $type, et JTable::getInstance().
Method to load a JUser object by user id number
public
- Paramètres:
-
mixed | $identifier | The user id of the user to load |
string | $path | Path to a parameters xml file |
- Renvoie:
- boolean True on success
- Depuis:
- 1.5
Références JError::raiseWarning().
JUser::save |
( |
$ |
updateOnly = false | ) |
|
JUser::setLastVisit |
( |
$ |
timestamp = null | ) |
|
Pass through method to the table for setting the last visit date
public
- Paramètres:
-
int | $timestamp | The timestamp, defaults to 'now' |
- Renvoie:
- boolean True on success
- Depuis:
- 1.5
JUser::setParam |
( |
$ |
key, |
|
|
$ |
value |
|
) |
| |
Method to set a parameter
public
- Paramètres:
-
string | $key | Parameter key |
mixed | $value | Parameter value |
- Renvoie:
- mixed Set parameter value
- Depuis:
- 1.5
JUser::setParameters |
( |
$ |
params | ) |
|
Method to get the user parameters
public
- Paramètres:
-
object | The user parameters object |
- Depuis:
- 1.5
Références $params.
Documentation des données membres
JUser::$activation = null |
JUser::$lastvisitDate = null |
JUser::$password_clear = '' |
JUser::$registerDate = null |
La documentation de cette classe a été générée à partir du fichier suivant :