API17:JUser::getInstance
From Joomla! Documentation
JUser::getInstance
Description
Returns the global User object, only creating it if it doesn't already exist.
public static function 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. |
See also
JUser::getInstance source code on BitBucket
Class JUser
Subpackage User- Other versions of JUser::getInstance
User contributed notes
Code Examples