Class URI
Represents an immutable uniform resource identifier (URI).
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\URI
Direct known subclasses
Indirect known subclasses
Core\URI\Driver\file
,
Core\URI\Driver\ftp
,
Core\URI\Driver\http
,
Core\URI\Driver\ssl
,
Core\URI\Driver\tcp
Package: Core\URI
Link: http://www.ietf.org/rfc/rfc2396.txt
Since: 3.0
Requires: PHP 5.3
Version: 1.2
Located at URI.inc.php
Methods summary
public
|
|
public static
|
|
public static
string
|
|
public static
string
|
#
encode( string|array $data, string $keyName = null, string $delimiter = null, string $valueDelimiter = null )
Encodes a string as an URI component or URI parameter key-value pairs. |
public static
|
#
remoteURIForPath( string $pathName_ = null )
Returns an URI object for the remote URL of a local file or path. |
public
string
|
|
public
|
#
cloneWithAppendedParameters( array $parameters = null, string $delimiter = null, string $valueDelimiter = null )
Creates a clone of this URI with a set of added parameters. If the
provided parameters array is empty or |
public
|
#
cloneWithProperties( array $properties )
Creates a clone of the current instance with properties changed to new values as defined in the given array. |
public
boolean
|
|
public
|
#
parameters( string $delimiter = null, string $valueDelimiter = null )
Returns reference to URI parameters instance specific to this URI and the provided parameter and value delimiters. |
public
array
|
|
public
boolean
|
|
protected
|
|
protected
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
string
|
$_v_scheme
KVC property. |
|
protected
string
|
$_v_schemeNS
KVC property. |
|
protected
string
|
$_v_authority
KVC property. |
|
protected
string
|
$_v_path
KVC property. |
|
protected
string
|
$_v_query
KVC property. |
|
protected
string
|
$_v_fragment
KVC property. |
|
protected
array
|
$_parameterCache
Cache for created parameter instances identified by field and value delimiters for optimised parameter retrieval; URIs are immutable, hence the query part does not change and caching has no side effects. |
#
array ()
|
Magic properties
public read-only
string
|
$scheme
Scheme part of this URI. The scheme is the alphanumeric part prior to the first double colon, for example »http« in a typical link. If the URI is relative, the scheme is |
public read-only
string
|
$schemeNS
Scheme namespace part. This is a Core-specific extension to standard URI parsing: If the URI scheme contains a dot, the scheme is split into a scheme namespace and a scheme part. This extension allows to describe inter-library driver class relations such as views in the Application namespace. If the URI does not contain a scheme part or no scheme namespace is defined, the scheme namespace is |
public read-only
string
|
$authority
Authority of this URI. If the URI starts with a double-slash after the scheme part, the authority is the part between the double-slash and the first following slash. For URLs this usually denotes the server. Defaults to |
public read-only
string
|
$path
Path part of this URI. The path is the string between the authority and query parts of the URI. Default to |
public read-only
string
|
$query
Query part of this URI without question mark. A query is the URI component following the first question mark and ends in an optional hash mark. A query usually contains several parameters provided as key-value pairs. Standard URIs either use an ampersand or a semicolon to separate key-value pairs, key and values are usually separated by an equality sign. See |
public read-only
string
|
$fragment
Fragment part of this URI without hash character. The fragment is the tail of a URI following an optional hash, for example HTML anchors. Defaults to |
public read-only
boolean
|
$isAbsolute
Indicates, whether the URI is absolute. See |
public read-only
|
$parameters
Hash of URI parameters using default delimiters. See |