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
stringProperty name
mixed__isset(string $name) : boolean
stringProperty name
boolean__set(string $name, mixed $value)
stringProperty name
mixedProperty value
__toString() : string
string__unset(string $name)
stringProperty name
absolutize(\IRI|string $base, \IRI|string $relative) : \IRI | false
Returns false if $base is not absolute, otherwise an IRI.
\IRIstring(Absolute) Base IRI
\IRIstringRelative IRI
\IRIfalse
get_iri() : string
stringget_uri() : string
stringis_valid() : boolean
booleanset_fragment(string $ifragment) : boolean
string
booleanset_host(string $ihost) : boolean
string
booleanset_iri(string $iri) : boolean
string
booleanset_path(string $ipath) : boolean
string
booleanset_port(string $port) : boolean
string
booleanset_query(string $iquery) : boolean
string
booleanset_scheme(string $scheme) : boolean
string
booleanset_userinfo(string $iuserinfo) : boolean
string
booleanto_uri($string) : string
stringparse_iri(string $iri) : array
string
arrayremove_dot_segments(string $input) : string
string
stringremove_iunreserved_percent_encoded(array $match) : string
Removes sequences of percent encoded bytes that represent UTF-8 encoded characters in iunreserved
arrayPCRE match
stringReplacementreplace_invalid_with_pct_encoding(string $string, string $extra_chars, boolean $iprivate = false) : string
stringInput string
stringValid characters not in iunreserved or iprivate (this is ASCII-only)
booleanAllow iprivate
stringscheme_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