Warning! You are currently reading the documentation for Requests 1.x.
It is recommended to upgrade to Requests 2.x at your earliest convenience.
Upgrading to Requests 2.x is fairly straight-forward.
A full list of the changes can be found in the Changelog.
Visit the documentation for Requests_IRI
in Requests 2.x.
Class Requests_IRI
IRI parser/serialiser/normaliser
Copyright (c) 2007-2010, Geoffrey Sneddon and Steve Minutillo. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the SimplePie Team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright: 2007-2009 Geoffrey Sneddon and Steve Minutillo
License: http://www.opensource.org/licenses/bsd-license.php
Author: Geoffrey Sneddon
Author: Steve Minutillo
Link: http://hg.gsnedders.com/iri/
Located at Requests/IRI.php
public
string
|
|
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
|
|
public static
|
#
absolutize(
Create a new IRI object by resolving a relative IRI |
protected
array
|
|
protected
string
|
|
protected
string
|
#
replace_invalid_with_pct_encoding( string $string, string $extra_chars, boolean $iprivate = false )
Replace invalid character with percent encoding |
protected
string
|
|
protected
|
|
public
boolean
|
|
protected
boolean
|
|
protected
boolean
|
#
set_scheme( string $scheme )
Set the scheme. Returns true on success, false on failure (if there are any invalid characters). |
protected
boolean
|
#
set_authority( string $authority )
Set the authority. Returns true on success, false on failure (if there are any invalid characters). |
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
string|false
|
|
protected
string|false
|
|
protected
string
|
|
protected
string|null
|
|
protected
string
|
protected
string|null
|
$scheme
Scheme |
#
null
|
protected
string|null
|
$iuserinfo
User Information |
#
null
|
protected
string|null
|
$ihost
ihost |
#
null
|
protected
string|null
|
$port
Port |
#
null
|
protected
string
|
$ipath
ipath |
#
''
|
protected
string|null
|
$iquery
iquery |
#
null
|
protected
string
|
$ifragment
ifragment|null |
#
null
|
protected
array
|
$normalization
Normalization database |
#
array(
'acap' => array(
'port' => 674
),
'dict' => array(
'port' => 2628
),
'file' => array(
'ihost' => 'localhost'
),
'http' => array(
'port' => 80,
),
'https' => array(
'port' => 443,
),
)
|
public
string
|
$iri
IRI we're working with |
public
string
|
$scheme
Scheme part of the IRI |
public
string
|
$authority
Authority part, formatted for a URI (userinfo + host + port) |
public
string
|
$iauthority
Authority part of the IRI (userinfo + host + port) |
public
string
|
$userinfo
Userinfo part, formatted for a URI (after '://' and before '@') |
public
string
|
$iuserinfo
Userinfo part of the IRI (after '://' and before '@') |
public
string
|
$host
Host part, formatted for a URI |
public
string
|
$ihost
Host part of the IRI |
public
string
|
$port
Port part of the IRI (after ':') |
public
string
|
$path
Path part, formatted for a URI (after first '/') |
public
string
|
$ipath
Path part of the IRI (after first '/') |
public
string
|
$query
Query part, formatted for a URI (after '?') |
public
string
|
$iquery
Query part of the IRI (after '?') |
public
string
|
$fragment
Fragment, formatted for a URI (after '#') |
public
string
|
$ifragment
Fragment part of the IRI (after '#') |
public read-only
string
|
$uri
IRI in URI form, |