API17

JApplication::getInstance: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:
Returns the global  object, only creating it if it doesn't already exist.  
Returns the global  object, only creating it if it doesn't already exist.  


{{subst:Description:JApplication::getInstance}}
 


<source lang="php">
<source lang="php">
Line 46: Line 46:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[API17:JApplication::getInstance|Other versions of JApplication::getInstance]]
* [[API17:JApplication::getInstance|Other versions of JApplication::getInstance]]
{{subst:SeeAlso:JApplication::getInstance}}
 


===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JApplication::getInstance
category=JApplication::getInstance
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 02:19, 25 March 2017

Joomla 11.1 JApplication::getInstance

Description

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


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


User contributed notes

Code Examples