JUser::getInstance
Returns the global User object, only creating it if it doesn't already exist.
Signature
public function getInstance([integer
$identifier = 0] )
Parameters
-
$identifier
- The user to load - Can be an integer or string - If string, it is converted to ID automatically.
Returns
- JUser
- The User object.