Actions

API17

Difference between revisions of "JUser::getInstance"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (moving preparation)
 
(2 intermediate revisions by one user not shown)
Line 28: Line 28:
 
* '''Since''' {{JVer|11.1 }}
 
* '''Since''' {{JVer|11.1 }}
 
* '''Referenced by'''
 
* '''Referenced by'''
** [[JUserHelper::activateUser/11.1|JUserHelper::activateUser]]
+
** [[API17:JUserHelper::activateUser|JUserHelper::activateUser]]
** [[JFactory::getUser/11.1|JFactory::getUser]]
+
** [[API17:JFactory::getUser|JFactory::getUser]]
** [[JUserHelper::getUserGroups/11.1|JUserHelper::getUserGroups]]
+
** [[API17:JUserHelper::getUserGroups|JUserHelper::getUserGroups]]
** [[JUserHelper::removeUserFromGroup/11.1|JUserHelper::removeUserFromGroup]]
+
** [[API17:JUserHelper::removeUserFromGroup|JUserHelper::removeUserFromGroup]]
** [[JUserHelper::setUserGroups/11.1|JUserHelper::setUserGroups]]
+
** [[API17:JUserHelper::setUserGroups|JUserHelper::setUserGroups]]
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JUser::getInstance source code''' on [[jplatform:user/user.php#cl-180|BitBucket]]
 
* {{JVer|11.1}} '''JUser::getInstance source code''' on [[jplatform:user/user.php#cl-180|BitBucket]]
* {{JVer|11.1}} Class [[JUser/11.1|JUser]]
+
* {{JVer|11.1}} Class [[API17:JUser|JUser]]
* {{JVer|11.1}} Subpackage [[Subpackage_User/11.1|User]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_User|User]]
* [[JUser::getInstance|Other versions of JUser::getInstance]]
+
* [[API17:JUser::getInstance|Other versions of JUser::getInstance]]
 
{{SeeAlso:JUser::getInstance}}
 
{{SeeAlso:JUser::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 53: Line 53:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JUser]][[Category:JUser::getInstance]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:49, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JUser::getInstance

Description

Returns the global User object, only creating it if it doesn't already exist.

Description:JUser::getInstance [Edit Descripton]

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

  • Joomla 11.1 JUser::getInstance source code on BitBucket
  • Joomla 11.1 Class JUser
  • Joomla 11.1 Subpackage User
  • Other versions of JUser::getInstance

SeeAlso:JUser::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />