UriInterface
interface UriInterface (View source)
Uri Interface
Interface for read-only access to Uris. This class is a fork from Joomla Uri.
Methods
Magic method to get the string representation of the URI object.
Returns full uri string.
Checks if variable exists.
Returns a query variable by name.
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.
Get URI password Returns the password, or null if no password was specified.
Get URI host Returns the hostname/ip or null if no hostname/ip was specified.
Get URI port Returns the port number, or null if no port was specified.
Gets the URI path string.
Get the URI archor string Everything after the "#".
Checks whether the current URI is using HTTPS.
Details
at line line 27
string
__toString()
Magic method to get the string representation of the URI object.
at line line 38
string
toString(array $parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'))
Returns full uri string.
at line line 49
boolean
hasVar(string $name)
Checks if variable exists.
at line line 61
array
getVar(string $name, string $default = null)
Returns a query variable by name.
at line line 72
string
getQuery(boolean $toArray = false)
Returns flat query string.
at line line 82
string
getScheme()
Get URI scheme (protocol) ie. http, https, ftp, etc.
..
at line line 92
string
getUser()
Get URI username Returns the username, or null if no username was specified.
at line line 102
string
getPass()
Get URI password Returns the password, or null if no password was specified.
at line line 112
string
getHost()
Get URI host Returns the hostname/ip or null if no hostname/ip was specified.
at line line 122
integer
getPort()
Get URI port Returns the port number, or null if no port was specified.
at line line 131
string
getPath()
Gets the URI path string.
at line line 141
string
getFragment()
Get the URI archor string Everything after the "#".
at line line 150
boolean
isSSL()
Checks whether the current URI is using HTTPS.