API17

Difference between revisions of "JAuthentication::getInstance"

From Joomla! Documentation

(Layout updates)
m (→‎See also: moving preparation)
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JAuthentication::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JAuthentication::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JAuthentication::getInstance ()
+
public static function getInstance ()
 
</source>
 
</source>
===Returns===
+
* '''Returns''' object The global  object
object The global  object
+
* '''Defined''' on line 59 of libraries/joomla/user/authentication.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/user/authentication.php (line 62)
 
* see source code in [[jplatform:user/authentication.php#cl-62|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JAuthentication::getInstance source code''' on [[jplatform:user/authentication.php#cl-51|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JAuthentication|JAuthentication]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_User|User]]
 +
* [[API17:JAuthentication::getInstance|Other versions of JAuthentication::getInstance]]
 +
{{SeeAlso:JAuthentication::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JAuthentication::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JAuthentication::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JAuthentication/11.1|JAuthentication]]
+
===User contributed notes===
* [[JAuthentication::getInstance|Other versions of this method]]
 
{{SeeAlso:JAuthentication::getInstance}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 35: Line 31:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JAuthentication]][[Category:JAuthentication::getInstance]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 19:45, 11 May 2013

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.

Joomla 11.1 JAuthentication::getInstance[edit]

Description[edit]

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

Template:Description:JAuthentication::getInstance [Edit Descripton]

public static function getInstance ()
  • Returns object The global object
  • Defined on line 59 of libraries/joomla/user/authentication.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JAuthentication::getInstance [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />