◆ __construct()
__construct |
( |
|
$iri = null | ) |
|
Create a new IRI object, from a specified string
- Paramètres
-
Références set_iri().
◆ __get()
◆ __isset()
Overload __isset() to provide access via properties
- Paramètres
-
- Renvoie
- bool
Références $name.
◆ __set()
Overload __set() to provide access via properties
- Paramètres
-
string | $name | Property name |
mixed | $value | Property value |
Références $name, $value, et elseif.
◆ __toString()
Return the entire IRI when you try and read the object as a string
- Renvoie
- string
Références get_iri().
◆ __unset()
Overload __unset() to provide access via properties
- Paramètres
-
Références $name.
◆ absolutize()
static absolutize |
( |
|
$base, |
|
|
|
$relative |
|
) |
| |
|
static |
Create a new IRI object by resolving a relative IRI
Returns false if $base is not absolute, otherwise an IRI.
- Paramètres
-
IRI | string | $base | (Absolute) Base IRI |
IRI | string | $relative | Relative IRI |
- Renvoie
- IRI|false
Références $base, $target, elseif, et null.
Référencé par SimplePie_Misc\absolutize_url().
◆ get_authority()
◆ get_iauthority()
◆ get_iri()
◆ get_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.
- Renvoie
- bool
Références null.
Référencé par get_iri().
◆ parse_iri()
Parse an IRI into scheme/authority/path/query/fragment segments
- Paramètres
-
- Renvoie
- array
Références null.
Référencé par set_iri().
◆ remove_dot_segments()
remove_dot_segments |
( |
|
$input | ) |
|
|
protected |
◆ remove_iunreserved_percent_encoded()
remove_iunreserved_percent_encoded |
( |
|
$match | ) |
|
|
protected |
Callback function for preg_replace_callback.
Removes sequences of percent encoded bytes that represent UTF-8 encoded characters in iunreserved
- Paramètres
-
- Renvoie
- string Replacement
Références $i, $start, $value, et elseif.
◆ replace_invalid_with_pct_encoding()
replace_invalid_with_pct_encoding |
( |
|
$string, |
|
|
|
$extra_chars, |
|
|
|
$iprivate = false |
|
) |
| |
|
protected |
◆ scheme_normalization()
◆ set_authority()
set_authority |
( |
|
$authority | ) |
|
◆ set_fragment()
set_fragment |
( |
|
$ifragment | ) |
|
◆ set_host()
◆ set_iri()
◆ set_path()
◆ set_port()
◆ set_query()
◆ set_scheme()
Set the scheme. Returns true on success, false on failure (if there are any invalid characters).
- Paramètres
-
- Renvoie
- bool
Références $scheme, elseif, et null.
Référencé par set_iri().
◆ set_userinfo()
set_userinfo |
( |
|
$iuserinfo | ) |
|
◆ to_uri()
◆ $ifragment
◆ $ihost
◆ $ipath
◆ $iquery
◆ $iuserinfo
◆ $normalization
Valeur initiale := 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.
◆ $port
◆ $scheme
La documentation de cette classe a été générée à partir du fichier suivant :