Actions

API17

Difference between revisions of "JURI::getInstance"

From Joomla! Documentation

(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>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JURI::getInstance ($uri= 'SERVER')
+
public static function getInstance ($uri= 'SERVER')
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' The URI object.
The URI object.
+
* '''Defined''' on line 110 of libraries/joomla/environment/uri.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/environment/uri.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JRoute::_/11.1|JRoute::_]]
* [[JRoute/_/11.1|JRoute::_]]
+
** [[JFactory::getURI/11.1|JFactory::getURI]]
* [[JFactory/getURI/11.1|JFactory::getURI]]
+
** [[JApplication::redirect/11.1|JApplication::redirect]]
* [[JApplication/redirect/11.1|JApplication::redirect]]
+
** [[JApplication::route/11.1|JApplication::route]]
* [[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>
* [[JURI/11.1|JURI]]
+
===User contributed notes===
* [[JURI::getInstance|Other versions of this method]]
+
{{SeeAlso:JURI::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 51: Line 49:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JURI]][[Category:JURI::getInstance]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Revision as of 11:54, 9 August 2012

Replacement filing cabinet.png
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.

Joomla 11.1 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]

See also

SeeAlso:JURI::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />