Difference between revisions of "JApplication::getInstance"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (moving preparation) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JApplication::getInstance|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JApplication::getInstance|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function getInstance ( |
+ | $client | ||
+ | $config=array | ||
+ | $prefix= 'J' | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 37: | Line 38: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' $prefix The appliction object. | |
− | $prefix The appliction object. | + | * '''Defined''' on line 131 of libraries/joomla/application/application.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/application/application.php | + | * '''Referenced by''' |
− | + | ** [[API17:JFactory::getApplication|JFactory::getApplication]] | |
− | * [[JFactory | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JApplication::getInstance source code''' on [[jplatform:application/application.php#cl-123|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[API17:JApplication|JApplication]] | ||
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | ||
+ | * [[API17: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> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 58: | Line 60: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 19:41, 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.
JApplication::getInstance[edit]
Description[edit]
Returns the global object, only creating it if it doesn't already exist.
Template: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
- Referenced by
See also[edit]
- JApplication::getInstance source code on BitBucket
- Class JApplication
- Subpackage Application
- Other versions of JApplication::getInstance
Template:SeeAlso:JApplication::getInstance [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />