JURI Class
This class serves two purposes. First it parses a URI and provides a common interface for the Joomla Platform to access and manipulate a URI. Second it obtains the URI of the current executing script from the server regardless of server.
Located in /libraries/joomla/environment/uri.php (line 23)
JObject | --JURI
Inherited from JObject
JObject::$_errors
Returns the base URI for the request.
Build a query from a array (reverse of the PHP parse_str()).
Returns the URL for the request, minus the query.
Returns the global JURI object, only creating it if it doesn't already exist.
Checks if the supplied URL is internal
Method to reset class static members for testing and other various issues.
Returns the root URI for the request.
Constructor.
You can pass a URI string to the constructor to initialise a specific URI.
Removes an item from the query string variables if it exists.
Get the URI archor string Everything after the "#".
Get URI host Returns the hostname/ip or null if no hostname/ip was specified.
Get URI password Returns the password, or null if no password was specified.
Gets the URI path string.
Get URI port Returns the port number, or null if no port was specified.
Returns flat query string.
Get URI scheme (protocol) ie. http, https, ftp, etc...
Get URI username Returns the username, or null if no username was specified.
Returns a query variable by name.
Checks if variable exists.
Checks whether the current URI is using HTTPS.
Parse a given URI and populate the class fields.
Set the URI anchor string everything after the "#".
Set URI host.
Set URI password.
Set the URI path string.
Set URI port.
Sets the query to a supplied string in format: foo=bar&x=y
Set URI scheme (protocol) ie. http, https, ftp, etc...
Set URI username.
Adds a query variable and value, replacing the value if it already exists and returning the old value.
Returns full uri string.
Resolves //, ../ and ./ from a path and returns the result. Eg:
/foo/bar/../boo.php => /foo/boo.php /foo/bar/../../boo.php => /boo.php /foo/bar/.././/boo.php => /foo/boo.php
Magic method to get the string representation of the URI object.
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()
Documentation generated on Mon, 25 Jun 2012 14:00:23 -0500 by phpDocumentor 1.4.4