Abstract Class HTMLPurifier_URIScheme
Inheritance | HTMLPurifier_URIScheme |
---|
Validator for the components of a URI for a specific scheme
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$browsable | Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not. | HTMLPurifier_URIScheme | |
$default_port | Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided. | HTMLPurifier_URIScheme | |
$hierarchical | Whether or not the URI always uses |
HTMLPurifier_URIScheme | |
$may_omit_host | Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file. As of writing, 'file' is the only scheme that browsers support his properly. | HTMLPurifier_URIScheme | |
$secure | Whether or not data transmitted over this scheme is encrypted. | HTMLPurifier_URIScheme |
Public Methods
Method | Description | Defined By |
---|---|---|
doValidate() | Validates the components of a URI for a specific scheme. | HTMLPurifier_URIScheme |
validate() | Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method. | HTMLPurifier_URIScheme |
Property Details
https is secure, http is not.
Method Details
Validates the components of a URI for a specific scheme.
public abstract bool doValidate ( <b>&</b>$uri, $config, $context ) | ||
$uri | HTMLPurifier_URI | Reference to a HTMLPurifier_URI object |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context | |
return | bool | Success or failure |
---|
Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method.
public bool validate ( <b>&</b>$uri, $config, $context ) | ||
$uri | HTMLPurifier_URI | Reference to a HTMLPurifier_URI object |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context | |
return | bool | Success or failure |
---|