Actions

API17

Difference between revisions of "JApplication::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JApplication::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JApplication::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JApplication::getInstance ($client, $config=array(), $prefix= 'J')
+
public static function getInstance (
 +
        $client
 +
        $config=array
 +
        $prefix= 'J'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' $prefix The appliction object.
$prefix The appliction object.
+
* '''Defined''' on line 131 of libraries/joomla/application/application.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/application.php (line 131)
+
* '''Referenced by'''
* see source code in [[jplatform:application/application.php#cl-131|BitBucket]]
+
** [[JFactory::getApplication/11.1|JFactory::getApplication]]
===Referenced by===
+
* [[JFactory::getApplication/11.1|JFactory::getApplication]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JApplication::getInstance source code''' on [[jplatform:application/application.php#cl-123|BitBucket]]
 +
* {{JVer|11.1}} Class [[JApplication/11.1|JApplication]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
 +
* [[JApplication::getInstance|Other versions of JApplication::getInstance]]
 +
{{SeeAlso:JApplication::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JApplication::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JApplication::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JApplication/11.1|JApplication]]
+
===User contributed notes===
* [[JApplication::getInstance|Other versions of this method]]
+
{{SeeAlso:JApplication::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 59: Line 60:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JApplication]][[Category:JApplication::getInstance]]</noinclude>
 
<noinclude>[[Category:JApplication]][[Category:JApplication::getInstance]]</noinclude>

Revision as of 19:08, 27 April 2011

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 JApplication::getInstance

Description

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

Description:JApplication::getInstance [Edit Descripton]

public static function getInstance (
        $client
        $config=array
        $prefix= 'J'
)
Parameter Type Default Description
$client mixed A client identifier or name.
$config array array() An optional associative array of configuration settings.
$prefix 'J'
  • Returns $prefix The appliction object.
  • Defined on line 131 of libraries/joomla/application/application.php
  • Since Joomla 11.1
  • Referenced by

See also

SeeAlso:JApplication::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />