Uri
class Uri extends Uri
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.
Methods
Returns the global JUri object, only creating it if it doesn't already exist.
Returns the base URI for the request.
Returns the root URI for the request.
Returns the URL for the request, minus the query.
Method to reset class static members for testing and other various issues.
Set the URI path string. Note we keep this method here so it uses the old _cleanPath function
Checks if the supplied URL is internal
Build a query from an array (reverse of the PHP parse_str()).
Parse a given URI and populate the class fields.
Details
static
Uri
getInstance(
string $uri = 'SERVER')
Returns the global JUri object, only creating it if it doesn't already exist.
static
string
root(
boolean $pathonly = false,
string $path = null)
Returns the root URI for the request.
void
setPath(
string $path)
Set the URI path string. Note we keep this method here so it uses the old _cleanPath function