Difference between revisions of "JURI::getInstance"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JURI::getInstance|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JURI::getInstance|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function getInstance ($uri= 'SERVER') |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' The URI object. | |
− | The URI object. | + | * '''Defined''' on line 110 of libraries/joomla/environment/uri.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/environment/uri.php | + | * '''Referenced by''' |
− | * | + | ** [[JRoute::_/11.1|JRoute::_]] |
− | + | ** [[JFactory::getURI/11.1|JFactory::getURI]] | |
− | * [[JRoute::_/11.1|JRoute::_]] | + | ** [[JApplication::redirect/11.1|JApplication::redirect]] |
− | * [[JFactory::getURI/11.1|JFactory::getURI]] | + | ** [[JApplication::route/11.1|JApplication::route]] |
− | * [[JApplication::redirect/11.1|JApplication::redirect]] | ||
− | * [[JApplication::route/11.1|JApplication::route]] | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JURI::getInstance source code''' on [[jplatform:environment/uri.php#cl-102|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JURI/11.1|JURI]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|Environment]] | ||
+ | * [[JURI::getInstance|Other versions of JURI::getInstance]] | ||
+ | {{SeeAlso:JURI::getInstance}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JURI::getInstance|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JURI::getInstance|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 52: | Line 49: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JURI]][[Category:JURI::getInstance]]</noinclude> | <noinclude>[[Category:JURI]][[Category:JURI::getInstance]]</noinclude> |
Revision as of 21:52, 27 April 2011
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.
Template:Description:JURI::getInstance [Edit Descripton]
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
Template:SeeAlso:JURI::getInstance [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />