API17:JURI::getInstance
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
m (→User contributed notes: re-categorisation) |
||
| (2 intermediate revisions by one user not shown) | |||
| 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::_]] | |
| − | * [[JRoute | + | ** [[JFactory::getURI/11.1|JFactory::getURI]] |
| − | * [[JFactory | + | ** [[JApplication::redirect/11.1|JApplication::redirect]] |
| − | * [[JApplication | + | ** [[JApplication::route/11.1|JApplication::route]] |
| − | * [[JApplication | + | |
===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 51: | Line 49: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
| − | <noinclude>[[Category:JURI | + | <noinclude>[[Category:JURI]]</noinclude> |
Revision as of 12:54, 9 August 2012
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JURI::getInstance
Description
Returns the global object, only creating it if it doesn't already exist.
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
-
JURI::getInstance source code on BitBucket
-
Class JURI
-
Subpackage Environment
- Other versions of JURI::getInstance
SeeAlso:JURI::getInstance [Edit See Also]
User contributed notes
<CodeExamplesForm />
