Difference between revisions of "JURI::getInstance"
From Joomla! Documentation
m (moving preparation) |
m (clean up) |
||
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. | ||
− | {{Description:JURI::getInstance}} | + | {{subst:Description:JURI::getInstance}} |
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function getInstance ($uri= 'SERVER') | public static function getInstance ($uri= 'SERVER') | ||
Line 37: | Line 35: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | ||
* [[API17:JURI::getInstance|Other versions of JURI::getInstance]] | * [[API17:JURI::getInstance|Other versions of JURI::getInstance]] | ||
− | {{SeeAlso:JURI::getInstance}} | + | {{subst:SeeAlso:JURI::getInstance}} |
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> |
Revision as of 11:19, 24 March 2017
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.
JURI::getInstance[edit]
Description[edit]
Returns the global object, only creating it if it doesn't already exist.
{{subst:Description:JURI::getInstance}}
public static function getInstance ($uri= 'SERVER')
Parameter | Type | Default | Description |
---|---|---|---|
$uri | string | 'SERVER' | The URI to parse. [optional: if null uses script URI] |
- Returns The URI object.
- Defined on line 110 of libraries/joomla/environment/uri.php
- Since
- Referenced by
See also[edit]
- JURI::getInstance source code on BitBucket
- Class JURI
- Subpackage Environment
- Other versions of JURI::getInstance
{{subst:SeeAlso:JURI::getInstance}}
User contributed notes[edit]
<CodeExamplesForm />