Class SimplePie_IRI
IRI parser/serialiser/normaliser
Copyright: 2007-2012 Geoffrey Sneddon, Steve Minutillo, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php
Author: Geoffrey Sneddon
Author: Steve Minutillo
Author: Ryan McCue
Located at SimplePie/IRI.php
public
string
|
|
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
|
#
__construct( string $iri = null )
Create a new IRI object, from a specified string Parameters
|
public static
IRI|false
|
#
absolutize( IRI|string $base, IRI|string $relative )
Create a new IRI object by resolving a relative IRI Returns false if $base is not absolute, otherwise an IRI. Parameters
ReturnsIRI|false |
protected
array
|
|
protected
string
|
#
remove_dot_segments( string $input )
Remove dot segments from a path Parameters
Returnsstring |
protected
string
|
#
replace_invalid_with_pct_encoding( string $string, string $extra_chars, boolean $iprivate = false )
Replace invalid character with percent encoding Parameters
Returnsstring |
protected
string
|
#
remove_iunreserved_percent_encoded( array $match )
Callback function for preg_replace_callback. Removes sequences of percent encoded bytes that represent UTF-8 encoded characters in iunreserved Parameters
Returnsstring Replacement |
protected
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
set_scheme( string $scheme )
Set the scheme. Returns true on success, false on failure (if there are any invalid characters). Parameters
Returnsboolean |
public
boolean
|
#
set_authority( string $authority )
Set the authority. Returns true on success, false on failure (if there are any invalid characters). Parameters
Returnsboolean |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
protected
string
|
protected
string
|
$scheme | null |
#
Scheme |
protected
string
|
$iuserinfo | null |
#
User Information |
protected
string
|
$ihost | null |
#
ihost |
protected
string
|
$port | null |
#
Port |
protected
string
|
$ipath | '' |
#
ipath |
protected
string
|
$iquery | null |
#
iquery |
protected
string
|
$ifragment | null |
#
ifragment |
protected
array
|
$normalization | array(
'acap' => array(
'port' => 674
),
'dict' => array(
'port' => 2628
),
'file' => array(
'ihost' => 'localhost'
),
'http' => array(
'port' => 80,
'ipath' => '/'
),
'https' => array(
'port' => 443,
'ipath' => '/'
),
) |
#
Normalization database 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. |