Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.
Expanded class hierarchy of Url
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
protected | property | ||
Url:: |
public | function | Add a relative path to the currently set path | |
Url:: |
public static | function | Build a URL from parse_url parts. The generated URL will be a relative URL if a scheme or host are not provided. | |
Url:: |
public | function | Combine the URL with another URL. Parts specified in the passed URL will supersede parts in the current URL. | |
Url:: |
public static | function | Factory method to create a new URL from a URL string | |
Url:: |
public | function | Get the fragment part of the URL | |
Url:: |
public | function | Get the host part of the URL | |
Url:: |
public | function | Get the parts of the URL as an array | |
Url:: |
public | function | Get the password part of the URL | |
Url:: |
public | function | Get the path part of the URL | |
Url:: |
public | function | Get the path segments of the URL as an array | |
Url:: |
public | function | Get the port part of the URl. Will return the default port for a given scheme if no port has been set. | |
Url:: |
public | function | Get the query part of the URL as a QueryString object | |
Url:: |
public | function | Get the scheme part of the URL | |
Url:: |
public | function | Get the username part of the URl | |
Url:: |
public | function | Check if this is an absolute URL | |
Url:: |
public | function | Normalize the URL so that double slashes and relative paths are removed | |
Url:: |
public | function | Set the fragment part of the URL | |
Url:: |
public | function | Set the host of the request. | |
Url:: |
public | function | Set the password part of the URL | |
Url:: |
public | function | Set the path part of the URL | |
Url:: |
public | function | Set the port part of the URL | |
Url:: |
public | function | Set the query part of the URL | |
Url:: |
public | function | Set the scheme part of the URL (http, https, ftp, etc) | |
Url:: |
public | function | Set the username part of the URL | |
Url:: |
public | function | Clone the URL | |
Url:: |
public | function | Create a new URL from URL parts | |
Url:: |
public | function | Returns the URL as a URL string |