Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct ($identifier=0) | |
getParam ($key, $default=null) | |
setParam ($key, $value) | |
defParam ($key, $value) | |
authorise ($action, $assetname=null) | |
getAuthorisedCategories ($component, $action) | |
getAuthorisedViewLevels () | |
getAuthorisedGroups () | |
setLastVisit ($timestamp=null) | |
getParameters () | |
setParameters ($params) | |
bind (&$array) | |
save ($updateOnly=false) | |
delete () | |
load ($id) | |
Fonctions membres publiques inherited from JObject | |
__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) |
Fonctions membres publiques statiques | |
static | getInstance ($identifier=0) |
static | getTable ($type=null, $prefix= 'JTable') |
Attributs publics | |
$id = null | |
$name = null | |
$username = null | |
$email = null | |
$password = null | |
$password_clear = '' | |
$block = null | |
$sendEmail = null | |
$registerDate = null | |
$lastvisitDate = null | |
$activation = null | |
$params = null | |
$groups = array() | |
$guest = null | |
$lastResetTime = null | |
$resetCount = null |
Attributs protégés | |
$isRoot = null | |
$_params = null | |
$_authGroups = null | |
$_authLevels = null | |
$_authActions = null | |
$_errorMsg = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
Attributs protégés statiques | |
static | $instances = array() |
JUser::__construct | ( | $identifier = 0 | ) |
Constructor activating the default information of the language
integer | $identifier | The primary key of the user to load (optional). |
Réimplémentée à partir de JObject.
JUser::authorise | ( | $action, | |
$assetname = null |
|||
) |
Method to check JUser object authorisation against an access control object and optionally an access extension object
string | $action | The name of the action to check for permission. |
string | $assetname | The name of the asset on which to perform the action. |
Définition à la ligne 330 du fichier user.php.
Références JAccess\check(), JAccess\getAssetRules(), et JFactory\getConfig().
JUser::bind | ( | & | $array | ) |
Method to bind an associative array of data to a user object
array | &$array | The associative array to bind to the object |
Définition à la ligne 545 du fichier user.php.
Références JText\_(), JUserHelper\genRandomPassword(), JFactory\getApplication(), JUserHelper\getCryptedPassword(), JFactory\getDate(), et JArrayHelper\getValue().
JUser::defParam | ( | $key, | |
$value | |||
) |
JUser::delete | ( | ) |
Method to delete the JUser object from the database
Définition à la ligne 808 du fichier user.php.
Références JEventDispatcher\getInstance().
JUser::getAuthorisedCategories | ( | $component, | |
$action | |||
) |
Method to return a list of all categories that a user has permission for a given action
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. |
Définition à la ligne 378 du fichier user.php.
Références JFactory\getDbo().
JUser::getAuthorisedGroups | ( | ) |
Gets an array of the authorised user groups
Définition à la ligne 433 du fichier user.php.
Références JAccess\getGroupsByUser().
JUser::getAuthorisedViewLevels | ( | ) |
Gets an array of the authorised access levels for the user
Définition à la ligne 411 du fichier user.php.
Références JAccess\getAuthorisedViewLevels().
|
static |
Returns the global User object, only creating it if it doesn't already exist.
integer | $identifier | The user to load - Can be an integer or string - If string, it is converted to ID automatically. |
Définition à la ligne 240 du fichier user.php.
Références JLog\add(), JUserHelper\getUserId(), JText\sprintf(), et JLog\WARNING.
Référencé par JUserHelper\activateUser(), JFactory\getUser(), JUserHelper\getUserGroups(), JUserHelper\removeUserFromGroup(), et JUserHelper\setUserGroups().
JUser::getParam | ( | $key, | |
$default = null |
|||
) |
JUser::getParameters | ( | ) |
Method to get the user parameters
This method used to load the user parameters from a file.
Définition à la ligne 476 du fichier user.php.
Références JLog\add(), et JLog\WARNING.
|
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.
string | $type | The user table name to be used |
string | $prefix | The user table prefix to be used |
Définition à la ligne 514 du fichier user.php.
Références JTable\getInstance().
JUser::load | ( | $id | ) |
Method to load a JUser object by user id number
mixed | $id | The user id of the user to load |
Définition à la ligne 839 du fichier user.php.
Références JLog\add(), JText\sprintf(), et JLog\WARNING.
JUser::save | ( | $updateOnly = false | ) |
Method to save the JUser object to the database
boolean | $updateOnly | Save the object only if not a new user Currently only used in the user reset password method. |
RuntimeException |
Définition à la ligne 674 du fichier user.php.
Références JAccess\check(), JAccess\checkGroup(), JEventDispatcher\getInstance(), JFactory\getUser(), et JRegistry\loadString().
JUser::setLastVisit | ( | $timestamp = null | ) |
Pass through method to the table for setting the last visit date
integer | $timestamp | The timestamp, defaults to 'now'. |
Définition à la ligne 457 du fichier user.php.
JUser::setParam | ( | $key, | |
$value | |||
) |
JUser::setParameters | ( | $params | ) |