Liste de tous les membres
Fonctions membres publiques |
| __construct ($identifier=0) |
| getParam ($key, $default=null) |
| setParam ($key, $value) |
| defParam ($key, $value) |
| authorize ($action, $assetname=null) |
| authorise ($action, $assetname=null) |
| authorisedLevels () |
| getAuthorisedCategories ($component, $action) |
| getAuthorisedViewLevels () |
| getAuthorisedGroups () |
| setLastVisit ($timestamp=null) |
| getParameters ($loadsetupfile=false, $path=null) |
| setParameters ($params) |
| bind (&$array) |
| save ($updateOnly=false) |
| delete () |
| load ($id) |
| __toString () |
| def ($property, $default=null) |
| get ($property, $default=null) |
| getProperties ($public=true) |
| getError ($i=null, $toString=true) |
| getErrors () |
| set ($property, $value=null) |
| setProperties ($properties) |
| setError ($error) |
| toString () |
Attributs protégés statiques |
static | $instances = array() |
Documentation des constructeurs et destructeur
JUser::__construct |
( |
|
$identifier = 0 | ) |
|
Constructor activating the default information of the language
- Paramètres:
-
integer | $identifier | The primary key of the user to load (optional). |
- Depuis:
- 11.1
Réimplémentée à partir de JObject.
Documentation des fonctions membres
JUser::authorise |
( |
|
$action, |
|
|
|
$assetname = null |
|
) |
| |
Method to check JUser object authorisation against an access control object and optionally an access extension object
- Paramètres:
-
string | $action | The name of the action to check for permission. |
string | $assetname | The name of the asset on which to perform the action. |
- Renvoie:
- boolean True if authorised
- Depuis:
- 11.1
Références $config, JAccess\check(), elseif, JAccess\getAssetRules(), JFactory\getConfig(), et null.
JUser::authorisedLevels |
( |
| ) |
|
Gets an array of the authorised access levels for the user
- Renvoie:
- array
- Obsolète:
- 12.1
- Note:
- Use the getAuthorisedViewLevels method instead.
- Depuis:
- 11.1
Références JLog\add(), et JLog\WARNING.
JUser::authorize |
( |
|
$action, |
|
|
|
$assetname = null |
|
) |
| |
Proxy to authorise
- Paramètres:
-
string | $action | The name of the action to check for permission. |
string | $assetname | The name of the asset on which to perform the action. |
- Renvoie:
- boolean True if authorised
- Obsolète:
- 12.1
- Note:
- Use the authorise method instead.
- Depuis:
- 11.1
Références JLog\add(), et JLog\WARNING.
JUser::defParam |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Method to set a default parameter if it does not exist
- Paramètres:
-
string | $key | Parameter key |
mixed | $value | Parameter value |
- Renvoie:
- mixed Set parameter value
- Depuis:
- 11.1
Références $key.
JUser::getAuthorisedCategories |
( |
|
$component, |
|
|
|
$action |
|
) |
| |
Method to return a list of all categories that a user has permission for a given action
- Paramètres:
-
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. |
- Renvoie:
- array List of categories that this group can do this action to (empty array if none). Categories must be published.
- Depuis:
- 11.1
Références $category, $db, $query, et JFactory\getDbo().
JUser::getAuthorisedGroups |
( |
| ) |
|
JUser::getAuthorisedViewLevels |
( |
| ) |
|
static JUser::getInstance |
( |
|
$identifier = 0 | ) |
|
|
static |
Returns the global User object, only creating it if it doesn't already exist.
- Paramètres:
-
integer | $identifier | The user to load - Can be an integer or string - If string, it is converted to ID automatically. |
- Renvoie:
- JUser The User object.
- Depuis:
- 11.1
Références $id, $user, JUserHelper\getUserId(), JError\raiseWarning(), et JText\sprintf().
Référencé par plgUserJoomla\_getUser(), ContactControllerContact\_sendEmail(), JUserHelper\activateUser(), MessagesViewMessage\addToolbar(), JFactory\getUser(), JUserHelper\getUserGroups(), plgContentJoomla\onContentAfterSave(), plgAuthenticationJoomla\onUserAuthenticate(), UsersModelReset\processResetComplete(), UsersModelReset\processResetRequest(), JUserHelper\removeUserFromGroup(), UsersModelUser\save(), MessagesModelMessage\save(), et JUserHelper\setUserGroups().
JUser::getParam |
( |
|
$key, |
|
|
|
$default = null |
|
) |
| |
Method to get a parameter value
- Paramètres:
-
string | $key | Parameter key |
mixed | $default | Parameter default value |
- Renvoie:
- mixed The value or the default if it did not exist
- Depuis:
- 11.1
Références $key.
JUser::getParameters |
( |
|
$loadsetupfile = false , |
|
|
|
$path = null |
|
) |
| |
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.
- Paramètres:
-
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. |
- Renvoie:
- object The user parameters object.
- Depuis:
- 11.1
Références $file, $path, $type, et JPATH_ADMINISTRATOR.
static JUser::getTable |
( |
|
$type = null , |
|
|
|
$prefix = 'JTable' |
|
) |
| |
|
static |
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.
- Paramètres:
-
string | $type | The user table name to be used |
string | $prefix | The user table prefix to be used |
- Renvoie:
- object The user table object
- Depuis:
- 11.1
Références $type, et JTable\getInstance().
JUser::save |
( |
|
$updateOnly = false | ) |
|
JUser::setLastVisit |
( |
|
$timestamp = null | ) |
|
Pass through method to the table for setting the last visit date
- Paramètres:
-
integer | $timestamp | The timestamp, defaults to 'now'. |
- Renvoie:
- boolean True on success.
- Depuis:
- 11.1
JUser::setParam |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Method to set a parameter
- Paramètres:
-
string | $key | Parameter key |
mixed | $value | Parameter value |
- Renvoie:
- mixed Set parameter value
- Depuis:
- 11.1
Références $key.
JUser::setParameters |
( |
|
$params | ) |
|
Method to get the user parameters
- Paramètres:
-
object | $params | The user parameters object |
- Renvoie:
- void
- Depuis:
- 11.1
Références $params.
Documentation des données membres
JUser::$_authActions = null |
|
protected |
JUser::$_authGroups = null |
|
protected |
JUser::$_authLevels = null |
|
protected |
JUser::$activation = null |
JUser::$instances = array() |
|
staticprotected |
JUser::$lastResetTime = null |
JUser::$lastvisitDate = null |
JUser::$password_clear = '' |
JUser::$registerDate = null |
JUser::$resetCount = null |
La documentation de cette classe a été générée à partir du fichier suivant :