IRI parser/serialiser/normaliser
package | SimplePie |
---|---|
subpackage | HTTP |
author | Geoffrey Sneddon |
author | Steve Minutillo |
author | Ryan McCue |
copyright | 2007-2012 Geoffrey Sneddon, Steve Minutillo, Ryan McCue |
license | http://www.opensource.org/licenses/bsd-license.php |
__construct(string $iri = null
)
string
__get(string $name) : mixed
string
Property name
mixed
__isset(string $name) : boolean
string
Property name
boolean
__set(string $name, mixed $value)
string
Property name
mixed
Property value
__toString() : string
string
__unset(string $name)
string
Property name
absolutize(\IRI|string $base, \IRI|string $relative) : \IRI | false
Returns false if $base is not absolute, otherwise an IRI.
\IRI
string
(Absolute) Base IRI
\IRI
string
Relative IRI
\IRI
false
get_iri() : string
string
get_uri() : string
string
is_valid() : boolean
boolean
set_fragment(string $ifragment) : boolean
string
boolean
set_host(string $ihost) : boolean
string
boolean
set_iri(string $iri) : boolean
string
boolean
set_path(string $ipath) : boolean
string
boolean
set_port(string $port) : boolean
string
boolean
set_query(string $iquery) : boolean
string
boolean
set_scheme(string $scheme) : boolean
string
boolean
set_userinfo(string $iuserinfo) : boolean
string
boolean
to_uri($string) : string
string
parse_iri(string $iri) : array
string
array
remove_dot_segments(string $input) : string
string
string
remove_iunreserved_percent_encoded(array $match) : string
Removes sequences of percent encoded bytes that represent UTF-8 encoded characters in iunreserved
array
PCRE match
string
Replacementreplace_invalid_with_pct_encoding(string $string, string $extra_chars, boolean $iprivate = false
) : string
string
Input string
string
Valid characters not in iunreserved or iprivate (this is ASCII-only)
boolean
Allow iprivate
string
scheme_normalization()
$ifragment : string
null
$ihost : string
null
$ipath : string
''
$iquery : string
null
$iuserinfo : string
null
$normalization
array('acap' => array('port' => 674), 'dict' => array('port' => 2628), 'file' => array('ihost' => 'localhost'), 'http' => array('port' => 80, 'ipath' => '/'), 'https' => array('port' => 443, 'ipath' => '/'))
Each key is the scheme, each value is an array with each key as the IRI part and value as the default value for that part.
$port : string
null
$scheme : string
null