PHP Class SimplePie_IRI, ojs

Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Свойство Type Description
$fragment string Fragment
$host string Host
$path string Path
$port string Port
$query string Query
$scheme string Scheme
$userinfo string User Information
$valid array Whether the object represents a valid IRI

Méthodes publiques

Méthode Description
SimplePie_IRI ( string $iri ) : SimplePie_IRI Create a new IRI object, from a specified string
__toString ( ) : string Return the entire IRI when you try and read the object as a string
absolutize ( SimplePie_IRI $base, string $relative ) : SimplePie_IRI Create a new IRI object by resolving a relative IRI
get_authority ( ) : string Get the complete authority
get_fragment ( ) : string Get the fragment
get_host ( ) : string Get the host
get_iri ( ) : string Get the complete IRI
get_path ( ) : string Get the path
get_port ( ) : string Get the port
get_query ( ) : string Get the query
get_scheme ( ) : string Get the scheme
get_userinfo ( ) : string Get the user information
is_valid ( ) : boolean Check if the object represents a valid IRI
parse_iri ( string $iri ) : array Parse an IRI into scheme/authority/path/query/fragment segments
remove_dot_segments ( string $input ) : string Remove dot segments from a path
replace_invalid_with_pct_encoding ( string $string, string $valid_chars, integer $case = SIMPLEPIE_SAME_CASE ) : string Replace invalid character with percent encoding
set_authority ( string $authority ) : boolean Set the authority. Returns true on success, false on failure (if there are any invalid characters).
set_fragment ( string $fragment ) : boolean Set the fragment.
set_host ( string $host ) : boolean Set the host. Returns true on success, false on failure (if there are any invalid characters).
set_path ( string $path ) : boolean Set the path.
set_port ( string $port ) : boolean Set the port. Returns true on success, false on failure (if there are any invalid characters).
set_query ( string $query ) : boolean Set the query.
set_scheme ( string $scheme ) : boolean Set the scheme. Returns true on success, false on failure (if there are any invalid characters).
set_userinfo ( string $userinfo ) : boolean Set the userinfo.

Method Details

SimplePie_IRI() public méthode

Create a new IRI object, from a specified string
public SimplePie_IRI ( string $iri ) : SimplePie_IRI
$iri string
Résultat SimplePie_IRI

__toString() public méthode

Return the entire IRI when you try and read the object as a string
public __toString ( ) : string
Résultat string

absolutize() public méthode

Create a new IRI object by resolving a relative IRI
public absolutize ( SimplePie_IRI $base, string $relative ) : SimplePie_IRI
$base SimplePie_IRI Base IRI
$relative string Relative IRI
Résultat SimplePie_IRI

get_authority() public méthode

Get the complete authority
public get_authority ( ) : string
Résultat string

get_fragment() public méthode

Get the fragment
public get_fragment ( ) : string
Résultat string

get_host() public méthode

Get the host
public get_host ( ) : string
Résultat string

get_iri() public méthode

Get the complete IRI
public get_iri ( ) : string
Résultat string

get_path() public méthode

Get the path
public get_path ( ) : string
Résultat string

get_port() public méthode

Get the port
public get_port ( ) : string
Résultat string

get_query() public méthode

Get the query
public get_query ( ) : string
Résultat string

get_scheme() public méthode

Get the scheme
public get_scheme ( ) : string
Résultat string

get_userinfo() public méthode

Get the user information
public get_userinfo ( ) : string
Résultat string

is_valid() public méthode

Check if the object represents a valid IRI
public is_valid ( ) : boolean
Résultat boolean

parse_iri() public méthode

Parse an IRI into scheme/authority/path/query/fragment segments
public parse_iri ( string $iri ) : array
$iri string
Résultat array

remove_dot_segments() public méthode

Remove dot segments from a path
public remove_dot_segments ( string $input ) : string
$input string
Résultat string

replace_invalid_with_pct_encoding() public méthode

Replace invalid character with percent encoding
public replace_invalid_with_pct_encoding ( string $string, string $valid_chars, integer $case = SIMPLEPIE_SAME_CASE ) : string
$string string Input string
$valid_chars string Valid characters
$case integer Normalise case
Résultat string

set_authority() public méthode

Set the authority. Returns true on success, false on failure (if there are any invalid characters).
public set_authority ( string $authority ) : boolean
$authority string
Résultat boolean

set_fragment() public méthode

Set the fragment.
public set_fragment ( string $fragment ) : boolean
$fragment string
Résultat boolean

set_host() public méthode

Set the host. Returns true on success, false on failure (if there are any invalid characters).
public set_host ( string $host ) : boolean
$host string
Résultat boolean

set_path() public méthode

Set the path.
public set_path ( string $path ) : boolean
$path string
Résultat boolean

set_port() public méthode

Set the port. Returns true on success, false on failure (if there are any invalid characters).
public set_port ( string $port ) : boolean
$port string
Résultat boolean

set_query() public méthode

Set the query.
public set_query ( string $query ) : boolean
$query string
Résultat boolean

set_scheme() public méthode

Set the scheme. Returns true on success, false on failure (if there are any invalid characters).
public set_scheme ( string $scheme ) : boolean
$scheme string
Résultat boolean

set_userinfo() public méthode

Set the userinfo.
public set_userinfo ( string $userinfo ) : boolean
$userinfo string
Résultat boolean

Property Details

$fragment public_oe property

Fragment
public string $fragment
Résultat string

$host public_oe property

Host
public string $host
Résultat string

$path public_oe property

Path
public string $path
Résultat string

$port public_oe property

Port
public string $port
Résultat string

$query public_oe property

Query
public string $query
Résultat string

$scheme public_oe property

Scheme
public string $scheme
Résultat string

$userinfo public_oe property

User Information
public string $userinfo
Résultat string

$valid public_oe property

Whether the object represents a valid IRI
public array $valid
Résultat array