HTMLPurifier_ErrorCollector
Error collection class that enables HTML Purifier to report HTML problems back to the user
- Full name:
\HTMLPurifier_ErrorCollector
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
LINENO |
public | 0 | |
SEVERITY |
public | 1 | |
MESSAGE |
public | 2 | |
CHILDREN |
public | 3 |
Properties
errors
_current
_stacks
locale
generator
context
lines
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$context |
\HTMLPurifier_Context |
send
Sends an error message to the collector for later use
Parameters:
Parameter | Type | Description |
---|---|---|
$severity |
int | Error severity, PHP error style (don't use E_USER_) |
$msg |
string | Error message text |
getRaw
Retrieves raw error data for custom formatter to use
getHTMLFormatted
Default HTML formatting implementation for error messages
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
\HTMLPurifier_Config | Configuration, vital for HTML output nature |
$errors |
array | Errors array to display; used for recursion. |
_renderStruct
Parameters:
Parameter | Type | Description |
---|---|---|
$ret |
mixed | |
$struct |
mixed | |
$line |
mixed | |
$col |
mixed |
Automatically generated on 2025-03-18