Zend\Uri\UriInterface
Interface defining a URI
Synopsis
interface UriInterface
{
- // methods
- public void __construct()
- public bool isValid()
- public bool isValidRelative()
- public bool isAbsolute()
- public Uri parse()
- public string toString()
- public Uri normalize()
- public Uri makeRelative()
- public string|null getScheme()
- public string|null getUserInfo()
- public string|null getHost()
- public int|null getPort()
- public string|null getPath()
- public string|null getQuery()
- public array getQueryAsArray()
- public string|null getFragment()
- public Uri setScheme()
- public Uri setUserInfo()
- public Uri setHost()
- public Uri setPort()
- public Uri setPath()
- public Uri setQuery()
- public Uri setFragment()
- public string __toString()
Methods
public
- __construct() — Create a new URI object
- __toString() — Magic method to convert the URI to a string
- getFragment() — Get the URI fragment
- getHost() — Get the URI host
- getPath() — Get the URI path
- getPort() — Get the URI port
- getQuery() — Get the URI query
- getQueryAsArray() — Return the query string as an associative array of key => value pairs
- getScheme() — Get the scheme part of the URI
- getUserInfo() — Get the User-info (usually user:password) part
- isAbsolute() — Check if the URI is an absolute or relative URI
- isValid() — Check if the URI is valid
- isValidRelative() — Check if the URI is a valid relative URI
- makeRelative() — Convert the link to a relative link by substracting a base URI
- normalize() — Normalize the URI
- parse() — Parse a URI string
- setFragment() — Set the URI fragment part
- setHost() — Set the URI host
- setPath() — Set the path
- setPort() — Set the port part of the URI
- setQuery() — Set the query string
- setScheme() — Set the URI scheme
- setUserInfo() — Set the URI User-info part (usually user:password)
- toString() — Compose the URI into a string