Method |
Description |
|
__construct ( string $url = null, purl\ParserInterface $parser = null ) |
Construct a new Url instance. |
|
__toString ( ) |
|
|
extract ( string $string ) : array |
Extracts urls from a string of text. |
|
fromCurrent ( ) : Url |
Creates an Url instance based on data available on $_SERVER variable. |
|
getFragment ( ) : purl\Fragment |
Get the Fragment instance. |
|
getNetloc ( ) : string |
Gets the netloc part of the Url. It is the user, pass, host and port returned as a string. |
|
getParser ( ) : purl\ParserInterface |
Gets the ParserInterface instance used to parse this Url instance. |
|
getPath ( ) : purl\Path |
Get the Path instance. |
|
getQuery ( ) : Query |
Get the Query instance. |
|
getUrl ( ) : string |
Builds a string url from this Url instance internal data and returns it. |
|
isAbsolute ( ) : boolean |
Checks if the Url instance is absolute or not. |
|
join ( Url | string $url ) : Url |
Join this Url instance together with another Url instance or a string url. |
|
parse ( string $url ) : Url |
Static convenience method for creating a new Url instance. |
|
set ( $key, $value ) |
|
|
setFragment ( purl\Fragment $fragment ) |
Set the Fragment instance. |
|
setParser ( purl\ParserInterface $parser ) |
Sets the ParserInterface instance to use to parse this Url instance. |
|
setPath ( purl\Path $path ) |
Set the Path instance. |
|
setQuery ( Query $query ) |
Set the Query instance. |
|
setUrl ( $url ) |
Set the string url for this Url instance and sets initialized to false. |
|