API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($scheme, $userinfo, $host, $port, $path, $query, $fragment) | |
getSchemeObj ($config, $context) | |
validate ($config, $context) | |
toString () | |
isLocal ($config, $context) | |
isBenign ($config, $context) | |
Data Fields | |
$scheme | |
$userinfo | |
$host | |
$port | |
$path | |
$query | |
$fragment | |
HTML Purifier's internal representation of a URI.
__construct | ( | $scheme, | |
$userinfo, | |||
$host, | |||
$port, | |||
$path, | |||
$query, | |||
$fragment | |||
) |
string | $scheme | |
string | $userinfo | |
string | $host | |
int | $port | |
string | $path | |
string | $query | |
string | $fragment |
getSchemeObj | ( | $config, | |
$context | |||
) |
Retrieves a scheme object corresponding to the URI's scheme/default
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
isBenign | ( | $config, | |
$context | |||
) |
Returns true if this URL should be considered a 'benign' URL, that is:
- It is a local URL (isLocal), and - It has a equal or better level of security
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
isLocal | ( | $config, | |
$context | |||
) |
Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration.
Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want.
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
toString | ( | ) |
Convert URI back to string
validate | ( | $config, | |
$context | |||
) |
Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
$fragment |
@type string
$host |
@type string
$path |
@type string
$port |
@type int
$query |
@type string
$scheme |
@type string
$userinfo |
@type string