| ILIAS
    release_5-3 Revision v5.3.23-19-g915713cf615
    | 
HTML Purifier's internal representation of a URI. More...
 Collaboration diagram for HTMLPurifier_URI:
 Collaboration diagram for HTMLPurifier_URI:| Public Member Functions | |
| __construct ($scheme, $userinfo, $host, $port, $path, $query, $fragment) | |
| getSchemeObj ($config, $context) | |
| Retrieves a scheme object corresponding to the URI's scheme/default.  More... | |
| validate ($config, $context) | |
| Generic validation method applicable for all schemes.  More... | |
| toString () | |
| Convert URI back to string.  More... | |
| isLocal ($config, $context) | |
| Returns true if this URL might be considered a 'local' URL given the current context.  More... | |
| isBenign ($config, $context) | |
| Returns true if this URL should be considered a 'benign' URL, that is:  More... | |
| Data Fields | |
| $scheme | |
| @type string  More... | |
| $userinfo | |
| @type string  More... | |
| $host | |
| @type string  More... | |
| $port | |
| @type int  More... | |
| $path | |
| @type string  More... | |
| $query | |
| @type string  More... | |
| $fragment | |
| @type string  More... | |
HTML Purifier's internal representation of a URI.
| HTMLPurifier_URI::__construct | ( | $scheme, | |
| $userinfo, | |||
| $host, | |||
| $port, | |||
| $path, | |||
| $query, | |||
| $fragment | |||
| ) | 
| string | $scheme | |
| string | $userinfo | |
| string | $host | |
| int | $port | |
| string | $path | |
| string | $query | |
| string | $fragment | 
Definition at line 58 of file URI.php.
References $fragment, $host, $path, $port, $query, $scheme, and $userinfo.
| HTMLPurifier_URI::getSchemeObj | ( | $config, | |
| $context | |||
| ) | 
Retrieves a scheme object corresponding to the URI's scheme/default.
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context | 
Definition at line 75 of file URI.php.
References $config, $def, and HTMLPurifier_URISchemeRegistry\instance().
Referenced by isBenign().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_URI::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 | 
Definition at line 295 of file URI.php.
References $config, getSchemeObj(), and isLocal().
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_URI::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 | 
Definition at line 273 of file URI.php.
References $config.
Referenced by isBenign().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_URI::toString | ( | ) | 
Convert URI back to string.
Definition at line 219 of file URI.php.
References $authority, $fragment, $host, $path, $port, $query, and $result.
| HTMLPurifier_URI::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 | 
Definition at line 108 of file URI.php.
| HTMLPurifier_URI::$fragment | 
| HTMLPurifier_URI::$host | 
| HTMLPurifier_URI::$path | 
| HTMLPurifier_URI::$port | 
| HTMLPurifier_URI::$query | 
| HTMLPurifier_URI::$scheme | 
| HTMLPurifier_URI::$userinfo |