Property | Type | Description | |
---|---|---|---|
$arguments | array | Array representation of the URI query | |
$fragment | string | Fragment / anchor, if one was specified. | |
$host | string | Host of the locator, eg. some.subdomain.example.com | |
$password | string | Password of a login, if any | |
$path | string | The hierarchical part of the URI, eg. /products/acme_soap | |
$port | integer | Port of the locator, if any was specified. Eg. 80 | |
$query | string | Query string of the locator, if any. Eg. color=red&size=large | |
$scheme | string | The scheme / protocol of the locator, eg. http | |
$username | string | User name of a login, if any |
Method | Description | |
---|---|---|
__construct ( string $uriString ) | Constructs the URI object from a string | |
__toString ( ) : string | Returns a string representation of this URI | |
getArguments ( ) : array | Returns the arguments from the URI's query part | |
getFragment ( ) : string | Returns the fragment / anchor, if any | |
getHost ( ) : string | Returns the host(s) of the URI | |
getPassword ( ) : string | Returns the password of a login | |
getPath ( ) : string | Returns the URI path | |
getPort ( ) : integer | Returns the port of the URI | |
getQuery ( ) : string | Returns the URI's query part | |
getScheme ( ) : string | Returns the URI's scheme / protocol | |
getUsername ( ) : string | Returns the username of a login | |
setFragment ( string $fragment ) : void | Sets the fragment in the URI | |
setHost ( string $host ) : void | Sets the host(s) of the URI | |
setPassword ( string $password ) : void | Sets the URI's password | |
setPath ( string $path ) : void | Sets the path of the URI | |
setPort ( string $port ) : void | Sets the port in the URI | |
setQuery ( string $query ) : void | Sets the URI's query part. Updates (= overwrites) the arguments accordingly! | |
setScheme ( string $scheme ) : void | Sets the URI's scheme / protocol | |
setUsername ( string $username ) : void | Sets the URI's username |
public __construct ( string $uriString ) | ||
$uriString | string | String representation of the URI |
public __toString ( ) : string | ||
return | string | This URI as a string |
public getArguments ( ) : array | ||
return | array | Associative array of arguments and values of the URI's query part |
public getFragment ( ) : string | ||
return | string | The fragment |
public getPassword ( ) : string | ||
return | string | Password of the login |
public getUsername ( ) : string | ||
return | string | User name of the login |
public setFragment ( string $fragment ) : void | ||
$fragment | string | The fragment (aka "anchor") |
return | void |
public setPassword ( string $password ) : void | ||
$password | string | Password of the login |
return | void |
public setUsername ( string $username ) : void | ||
$username | string | User name of the login |
return | void |
protected array $arguments | ||
return | array |
protected string $fragment | ||
return | string |
protected string $host | ||
return | string |
protected string $password | ||
return | string |
protected string $path | ||
return | string |
protected int $port | ||
return | integer |
protected string $query | ||
return | string |
protected string $scheme | ||
return | string |
protected string $username | ||
return | string |