$anchor
$anchor : string
The anchor string (a/k/a fragment).
The Horde_Url class represents a single URL and provides methods for manipulating URLs.
__construct(string|\Horde_Url $url = '', boolean $raw = null)
Constructor.
string|\Horde_Url | $url | The basic URL, with or without query parameters. |
boolean | $raw | Whether to output the URL in the raw URL format or HTML-encoded. |
copy() : \Horde_Url
Returns a clone of this object. Useful for chaining.
A clone of this object.
add(mixed $parameters, string $value = null) : \Horde_Url
Adds one or more query parameters.
mixed | $parameters | Either the name value or an array of name/value pairs. |
string | $value | If specified, the value part ($parameters is then assumed to just be the parameter name). |
This (modified) object, to allow chaining.
remove( $parameters) : \Horde_Url
Removes one ore more parameters.
$parameters |
This (modified) object, to allow chaining.
setAnchor(string $anchor) : \Horde_Url
Sets the URL anchor.
string | $anchor | An anchor to add. |
This (modified) object, to allow chaining.
setRaw(boolean $raw) : \Horde_Url
Sets the $raw value. This call can be chained.
boolean | $raw | Whether to output the URL in the raw URL format or HTML-encoded. |
This object, to allow chaining.
setScheme(string $scheme = 'http', boolean $replace = false) : \Horde_Url
Sets the URL scheme.
string | $scheme | The URL scheme. |
boolean | $replace | Force using $scheme, even if it already exists? |
This object, to allow chaining.
unique() : \Horde_Url
Add a unique parameter to the URL to aid in cache-busting.
This (modified) object, to allow chaining.