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. | ||
<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]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JApplication::getInstance | category=JApplication::getInstance | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:19, 25 March 2017
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

- Referenced by
See also
JApplication::getInstance source code on BitBucket
Class JApplication
Subpackage Application- Other versions of JApplication::getInstance
User contributed notes
Code Examples