프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$anchor | string | The anchor string (a/k/a fragment). | |
$parameters | array | The keys are paramter names, the values parameter values. Array values will be added to the URL using name[]=value notation. | |
$pathInfo | string | Any PATH_INFO to be added to the URL. | |
$raw | boolean | Whether to output the URL in the raw URL format or HTML-encoded. | |
$toStringCallback | callback | A callback function to use when converting to a string. | |
$url | string | The basic URL, without query parameters. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_cache | array | Cached parameter list for use in toString(). |
메소드 | 설명 | |
---|---|---|
__construct ( string | Horde_Url $url = '', boolean $raw = null ) | Constructor. | |
__toString ( ) : string | Creates the full URL string. | |
add ( mixed $parameters, string $value = null ) : Horde_Url | Adds one or more query parameters. | |
copy ( ) : Horde_Url | Returns a clone of this object. Useful for chaining. | |
link ( array $attributes = [] ) : string | Generates a HTML link tag out of this URL. | |
redirect ( ) | Sends a redirect request to the browser to the URL in this object. | |
remove ( $parameters ) : Horde_Url | Removes one ore more parameters. | |
setAnchor ( string $anchor ) : Horde_Url | Sets the URL anchor. | |
setRaw ( boolean $raw ) : Horde_Url | Sets the $raw value. This call can be chained. | |
setScheme ( string $scheme = 'http', boolean $replace = false ) : Horde_Url | Sets the URL scheme. | |
toString ( boolean $raw = false, boolean $full = true ) : string | Creates the full URL string. | |
unique ( ) : Horde_Url | Add a unique parameter to the URL to aid in cache-busting. | |
uriB64Decode ( string $string ) : string | Decode URL-safe base64 data, dealing with missing '='. | |
uriB64Encode ( string $string ) : string | URL-safe base64 encoding, with trimmed '='. |
메소드 | 설명 | |
---|---|---|
_getParameters ( ) : array | Return a formatted list of URL parameters. |
public __construct ( string | Horde_Url $url = '', boolean $raw = null ) | ||
$url | string | Horde_Url | The basic URL, with or without query parameters. |
$raw | boolean | Whether to output the URL in the raw URL format or HTML-encoded. |
public __toString ( ) : string | ||
리턴 | string | The string representation of this object. |
protected _getParameters ( ) : array | ||
리턴 | array | Parameter list. |
public copy ( ) : Horde_Url | ||
리턴 | Horde_Url | A clone of this object. |
public redirect ( ) |
public remove ( $parameters ) : Horde_Url | ||
리턴 | Horde_Url | This (modified) object, to allow chaining. |
public unique ( ) : Horde_Url | ||
리턴 | Horde_Url | This (modified) object, to allow chaining. |
public static uriB64Decode ( string $string ) : string | ||
$string | string | Encoded data. |
리턴 | string | Decoded data. |
public static uriB64Encode ( string $string ) : string | ||
$string | string | String to encode. |
리턴 | string | URL-safe, base64 encoded data. |
public array $parameters | ||
리턴 | array |
public bool $raw | ||
리턴 | boolean |
public callback $toStringCallback | ||
리턴 | callback |