\SimplePie_IRI
IRI parser/serialiser/normaliser
- Author: Geoffrey Sneddon
- Copyright: 2007-2012 Geoffrey Sneddon, Steve Minutillo, Ryan McCue
- License: http://www.opensource.org/licenses/bsd-license.php
Synopsis
class SimplePie_IRI
{
- // members
- protected $scheme = NULL;
- protected $iuserinfo = NULL;
- protected $ihost = NULL;
- protected $port = NULL;
- protected string $ipath = '';
- protected $iquery = NULL;
- protected $ifragment = NULL;
- protected array $normalization = ;
- // methods
- public string __toString()
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
- public void __construct()
- public static IRI|false absolutize()
- protected array parse_iri()
- protected string remove_dot_segments()
- protected string replace_invalid_with_pct_encoding()
- protected string remove_iunreserved_percent_encoded()
- protected void scheme_normalization()
- public bool is_valid()
- public bool set_iri()
- public bool set_scheme()
- public bool set_authority()
- public bool set_userinfo()
- public bool set_host()
- public bool set_port()
- public bool set_path()
- public bool set_query()
- public bool set_fragment()
- public string to_uri()
- public string get_iri()
- public string get_uri()
- protected string get_iauthority()
- protected string get_authority()
Members
protected
- $ifragment
—
string
ifragment - $ihost
—
string
ihost - $ipath
—
string
ipath - $iquery
—
string
iquery - $iuserinfo
—
string
User Information -
$normalization
Normalization database - $port
—
string
Port - $scheme
—
string
Scheme
Methods
protected
- parse_iri() — Parse an IRI into scheme/authority/path/query/fragment segments
- remove_dot_segments() — Remove dot segments from a path
- remove_iunreserved_percent_encoded() — Callback function for preg_replace_callback.
- replace_invalid_with_pct_encoding() — Replace invalid character with percent encoding
- scheme_normalization()
public
- __construct() — Create a new IRI object, from a specified string
- __get() — Overload __get() to provide access via properties
- __isset() — Overload __isset() to provide access via properties
- __set() — Overload __set() to provide access via properties
- __toString() — Return the entire IRI when you try and read the object as a string
- __unset() — Overload __unset() to provide access via properties
- absolutize() — Create a new IRI object by resolving a relative IRI
- get_iri() — Get the complete IRI
- get_uri() — Get the complete URI
- is_valid() — Check if the object represents a valid IRI. This needs to be done on each call as some things change depending on another part of the IRI.
- set_fragment() — Set the ifragment.
- set_host() — Set the ihost. Returns true on success, false on failure (if there are any invalid characters).
- set_iri() — Set the entire IRI. Returns true on success, false on failure (if there are any invalid characters).
- set_path() — Set the ipath.
- set_port() — Set the port. Returns true on success, false on failure (if there are any invalid characters).
- set_query() — Set the iquery.
- set_scheme() — Set the scheme. Returns true on success, false on failure (if there are any invalid characters).
- set_userinfo() — Set the iuserinfo.
- to_uri() — Convert an IRI to a URI (or parts thereof)