HTMLPurifier_URIScheme_nntp
Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
- Full name:
\HTMLPurifier_URIScheme_nntp
- Parent class:
\HTMLPurifier_URIScheme
Properties
default_port
Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided.
browsable
Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not.
Methods
doValidate
Validates the components of a URI for a specific scheme.
public doValidate(\HTMLPurifier_URI& $uri, \HTMLPurifier_Config $config, \HTMLPurifier_Context $context): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
\HTMLPurifier_URI | |
$config |
\HTMLPurifier_Config | |
$context |
\HTMLPurifier_Context |
Inherited methods
doValidate
Validates the components of a URI for a specific scheme.
public doValidate(\HTMLPurifier_URI& $uri, \HTMLPurifier_Config $config, \HTMLPurifier_Context $context): bool
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
\HTMLPurifier_URI | Reference to a HTMLPurifier_URI object |
$config |
\HTMLPurifier_Config | |
$context |
\HTMLPurifier_Context |
Return Value:
success or failure
validate
Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method.
public validate(\HTMLPurifier_URI& $uri, \HTMLPurifier_Config $config, \HTMLPurifier_Context $context): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
\HTMLPurifier_URI | Reference to a HTMLPurifier_URI object |
$config |
\HTMLPurifier_Config | |
$context |
\HTMLPurifier_Context |
Return Value:
success or failure
Automatically generated on 2025-03-18