API17

API17:JUser::getInstance

From Joomla! Documentation

Joomla 11.1 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


User contributed notes

Code Examples