JUriJUri 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/uri/uri.php (line 23)
string
toString
([array $parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment')])
static array
$base
= array() (line 95)
static string
$current
(line 107)
static array
$instances
= array() (line 89)
static array
$root
= array() (line 101)
string
$fragment
= null (line 77)
string
$host
= null (line 41)
string
$pass
= null (line 59)
string
$path
= null (line 65)
integer
$port
= null (line 47)
string
$query
= null (line 71)
string
$scheme
= null (line 35)
string
$uri
= null (line 29)
string
$user
= null (line 53)
array
$vars
= array() (line 83)
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 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.
Get URI port Returns the port number, or null if no port was specified.
Returns flat query string.
Get URI username Returns the username, or null if no username was specified.
Returns a query variable by name.
Checks if variable exists.
Parse a given URI and populate the class fields.
Set the URI anchor string everything after the "#".
Set the URI path string.
Sets the query to a supplied string in format: foo=bar&x=y
Set URI scheme (protocol) ie. http, https, ftp, etc...
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.
Documentation generated on Tue, 19 Nov 2013 15:16:15 +0100 by phpDocumentor 1.4.3