JUser::getInstance
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JUser::getInstance[edit]
Description[edit]
Returns the global User object, only creating it if it doesn't already exist.
Template:Description:JUser::getInstance [Edit Descripton]
Since[edit]
Synopsis[edit]
public static JUser::getInstance ($identifier=0)
Parameter | Type | Default | Description |
---|---|---|---|
$identifier | int | 0 | The user to load - Can be an integer or string - If string, it is converted to ID automatically. |
Returns[edit]
The User object.
Defined in[edit]
libraries/joomla/user/user.php (line 188)
- see source code in BitBucket
Referenced by[edit]
- JUserHelper::activateUser
- JFactory::getUser
- JUserHelper::getUserGroups
- JUserHelper::removeUserFromGroup
- JUserHelper::setUserGroups
See also[edit]
Template:SeeAlso:JUser::getInstance
Examples[edit]
<CodeExamplesForm />