class Requests_IRI {}

In this article

IRI parser/serialiser/normaliser

Description

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.

Methods

NameDescription
Requests_IRI::__constructCreate a new IRI object, from a specified string
Requests_IRI::__getOverload __get() to provide access via properties
Requests_IRI::__issetOverload __isset() to provide access via properties
Requests_IRI::__setOverload __set() to provide access via properties
Requests_IRI::__toStringReturn the entire IRI when you try and read the object as a string
Requests_IRI::__unsetOverload __unset() to provide access via properties
Requests_IRI::absolutizeCreate a new IRI object by resolving a relative IRI
Requests_IRI::get_authorityGet the complete authority
Requests_IRI::get_iauthorityGet the complete iauthority
Requests_IRI::get_iriGet the complete IRI
Requests_IRI::get_uriGet the complete URI
Requests_IRI::is_validCheck 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.
Requests_IRI::parse_iriParse an IRI into scheme/authority/path/query/fragment segments
Requests_IRI::remove_dot_segmentsRemove dot segments from a path
Requests_IRI::remove_iunreserved_percent_encodedCallback function for preg_replace_callback.
Requests_IRI::replace_invalid_with_pct_encodingReplace invalid character with percent encoding
Requests_IRI::scheme_normalization
Requests_IRI::set_authoritySet the authority. Returns true on success, false on failure (if there are any invalid characters).
Requests_IRI::set_fragmentSet the ifragment.
Requests_IRI::set_hostSet the ihost. Returns true on success, false on failure (if there are any invalid characters).
Requests_IRI::set_iriSet the entire IRI. Returns true on success, false on failure (if there are any invalid characters).
Requests_IRI::set_pathSet the ipath.
Requests_IRI::set_portSet the port. Returns true on success, false on failure (if there are any invalid characters).
Requests_IRI::set_querySet the iquery.
Requests_IRI::set_schemeSet the scheme. Returns true on success, false on failure (if there are any invalid characters).
Requests_IRI::set_userinfoSet the iuserinfo.
Requests_IRI::to_uriConvert an IRI to a URI (or parts thereof)

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.