Actions

Difference between revisions of "JURI/getScheme"

From Joomla! Documentation

(New page: Returns the scheme part of the URI represented by the JURI object. ===Syntax=== string getScheme() ===Example=== <source lang="php"> $uri = 'http://fredbloggs:itsasecret@www.example.com:...)
 
m (See also: re-categorisation)
 
Line 15: Line 15:
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#getScheme JURI->getScheme on api.joomla.org]
 
* [http://api.joomla.org/Joomla-Framework/Environment/JURI.html#getScheme JURI->getScheme on api.joomla.org]
 
* [[JURI/setScheme|JURI->setScheme]]
 
* [[JURI/setScheme|JURI->setScheme]]
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JURI]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Latest revision as of 11:34, 9 August 2012

Returns the scheme part of the URI represented by the JURI object.

Syntax

string getScheme()

Example

$uri = 'http://fredbloggs:itsasecret@www.example.com:8080/path/to/Joomla/index.php?task=view&id=32#anchorthis';
$u =& JURI::getInstance( $uri );
echo 'Scheme is ' . $u->getScheme();

would output

Scheme is http

See also