class SimplePie_IRI


Located at : UKNOWVA_ROOT/libraries/simplepie/simplepie.php

IRI parser/serialiser

Properties

string $scheme Scheme
string $userinfo User Information
string $host Host
string $port Port
string $path Path
string $query Query
string $fragment Fragment
array $valid Whether the object represents a valid IRI

Methods

string
__toString()

Return the entire IRI when you try and read the object as a string

SimplePie_IRI(string $iri)

Create a new IRI object, from a specified string

absolutize(SimplePie_IRI $base, string $relative)

Create a new IRI object by resolving a relative IRI

array
parse_iri(string $iri)

Parse an IRI into scheme/authority/path/query/fragment segments

string
remove_dot_segments(string $input)

Remove dot segments from a path

string
replace_invalid_with_pct_encoding(string $string, string $valid_chars, int $case = SIMPLEPIE_SAME_CASE)

Replace invalid character with percent encoding

bool
is_valid()

Check if the object represents a valid IRI

bool
set_scheme(string $scheme)

Set the scheme. Returns true on success, false on failure (if there are any invalid characters).

bool
set_authority(string $authority)

Set the authority. Returns true on success, false on failure (if there are any invalid characters).

bool
set_userinfo(string $userinfo)

Set the userinfo.

bool
set_host(string $host)

Set the host. Returns true on success, false on failure (if there are any invalid characters).

bool
set_port(string $port)

Set the port. Returns true on success, false on failure (if there are any invalid characters).

bool
set_path(string $path)

Set the path.

bool
set_query(string $query)

Set the query.

bool
set_fragment(string $fragment)

Set the fragment.

string
get_iri()

Get the complete IRI

string
get_scheme()

Get the scheme

string
get_authority()

Get the complete authority

string
get_userinfo()

Get the user information

string
get_host()

Get the host

string
get_port()

Get the port

string
get_path()

Get the path

string
get_query()

Get the query

string
get_fragment()

Get the fragment

Details

at line 11645
string __toString()

Return the entire IRI when you try and read the object as a string

Return Value

string

at line 11657
SimplePie_IRI SimplePie_IRI(string $iri)

Create a new IRI object, from a specified string

Parameters

string $iri

Return Value

SimplePie_IRI

at line 11680
SimplePie_IRI absolutize(SimplePie_IRI $base, string $relative)

Create a new IRI object by resolving a relative IRI

Parameters

SimplePie_IRI $base Base IRI
string $relative Relative IRI

Return Value

SimplePie_IRI

at line 11759
array parse_iri(string $iri)

Parse an IRI into scheme/authority/path/query/fragment segments

Parameters

string $iri

Return Value

array

at line 11776
string remove_dot_segments(string $input)

Remove dot segments from a path

Parameters

string $input

Return Value

string

at line 11839
string replace_invalid_with_pct_encoding(string $string, string $valid_chars, int $case = SIMPLEPIE_SAME_CASE)

Replace invalid character with percent encoding

Parameters

string $string Input string
string $valid_chars Valid characters
int $case Normalise case

Return Value

string

at line 11915
bool is_valid()

Check if the object represents a valid IRI

Return Value

bool

at line 11928
bool set_scheme(string $scheme)

Set the scheme. Returns true on success, false on failure (if there are any invalid characters).

Parameters

string $scheme

Return Value

bool

at line 11969
bool set_authority(string $authority)

Set the authority. Returns true on success, false on failure (if there are any invalid characters).

Parameters

string $authority

Return Value

bool

at line 12001
bool set_userinfo(string $userinfo)

Set the userinfo.

Parameters

string $userinfo

Return Value

bool

at line 12023
bool set_host(string $host)

Set the host. Returns true on success, false on failure (if there are any invalid characters).

Parameters

string $host

Return Value

bool

at line 12062
bool set_port(string $port)

Set the port. Returns true on success, false on failure (if there are any invalid characters).

Parameters

string $port

Return Value

bool

at line 12091
bool set_path(string $path)

Set the path.

Parameters

string $path

Return Value

bool

at line 12124
bool set_query(string $query)

Set the query.

Parameters

string $query

Return Value

bool

at line 12145
bool set_fragment(string $fragment)

Set the fragment.

Parameters

string $fragment

Return Value

bool

at line 12165
string get_iri()

Get the complete IRI

Return Value

string

at line 12205
string get_scheme()

Get the scheme

Return Value

string

at line 12216
string get_authority()

Get the complete authority

Return Value

string

at line 12248
string get_userinfo()

Get the user information

Return Value

string

at line 12259
string get_host()

Get the host

Return Value

string

at line 12270
string get_port()

Get the port

Return Value

string

at line 12281
string get_path()

Get the path

Return Value

string

at line 12292
string get_query()

Get the query

Return Value

string

at line 12303
string get_fragment()

Get the fragment

Return Value

string