Class HTMLPurifier_ErrorCollector
Inheritance | HTMLPurifier_ErrorCollector |
---|
Error collection class that enables HTML Purifier to report HTML problems back to the user
Protected Properties
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | HTMLPurifier_ErrorCollector | |
getHTMLFormatted() | Default HTML formatting implementation for error messages | HTMLPurifier_ErrorCollector |
getRaw() | Retrieves raw error data for custom formatter to use | HTMLPurifier_ErrorCollector |
send() | Sends an error message to the collector for later use | HTMLPurifier_ErrorCollector |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
CHILDREN | 3 | HTMLPurifier_ErrorCollector | |
LINENO | 0 | Identifiers for the returned error array. These are purposely numeric so list() can be used. | HTMLPurifier_ErrorCollector |
MESSAGE | 2 | HTMLPurifier_ErrorCollector | |
SEVERITY | 1 | HTMLPurifier_ErrorCollector |
Property Details
Method Details
public void __construct ( $context ) | ||
$context | HTMLPurifier_Context |
Default HTML formatting implementation for error messages
public string getHTMLFormatted ( $config, $errors = null ) | ||
$config | HTMLPurifier_Config | Configuration, vital for HTML output nature |
$errors | array | Errors array to display; used for recursion. |
Retrieves raw error data for custom formatter to use
public void getRaw ( ) |
Sends an error message to the collector for later use
public void send ( $severity, $msg ) | ||
$severity | int | Error severity, PHP error style (don't use EUSER) |
$msg | string | Error message text |