abstract |
---|
Validator for the components of a URI for a specific scheme
Methods | ||||
---|---|---|---|---|
abstract
public
|
doValidate(HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
Validates the components of a URI for a specific scheme.
Validates the components of a URI for a specific scheme. Parameters
Returnssuccess or failure Implemented by
|
# | ||
public
|
validate(HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
Public interface for validating components of a URI. Performs a
bunch of default actions. Don't overload this method.
Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method. Parameters
Returnssuccess or failure |
# |
Properties | |||
---|---|---|---|
public
|
|
$default_port = null
Scheme's default port (integer). If an explicit port number is
specified that coincides with the default port, it will…
Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided. |
# |
public
|
|
$browsable = false
Whether or not URIs of this scheme are locatable by a browser
http and ftp are accessible, while mailto and news are…
Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not. |
# |
public
|
|
$secure = false
Whether or not data transmitted over this scheme is encrypted.
https is secure, http is not.
Whether or not data transmitted over this scheme is encrypted. https is secure, http is not. |
# |
public
|
|
$hierarchical = false
Whether or not the URI always uses <hier_part>, resolves edge cases
with making relative URIs absolute
Whether or not the URI always uses <hier_part>, resolves edge cases with making relative URIs absolute |
# |
public
|
|
$may_omit_host = false
Whether or not the URI may omit a hostname when the scheme is
explicitly specified, ala file:///path/to/file. As of…
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. |
# |