\HTMLPurifier_ErrorCollector

Error collection class that enables HTML Purifier to report HTML problems back to the user

Summary

Methods
Properties
Constants
__construct()
send()
getRaw()
getHTMLFormatted()
No public properties found
LINENO
SEVERITY
MESSAGE
CHILDREN
No protected methods found
$errors
$_current
$_stacks
$locale
$generator
$context
$lines
N/A
_renderStruct()
No private properties found
N/A

Constants

LINENO

LINENO = 0

Identifiers for the returned error array. These are purposely numeric so list() can be used.

SEVERITY

SEVERITY = 1

MESSAGE

MESSAGE = 2

CHILDREN

CHILDREN = 3

Properties

$errors

$errors

$_current

$_current

$_stacks

$_stacks

$locale

$locale

$generator

$generator

$context

$context

$lines

$lines

Methods

__construct()

__construct(\HTMLPurifier_Context  $context) : mixed

Parameters

\HTMLPurifier_Context $context

Returns

mixed —

send()

send(int  $severity, string  $msg) : mixed

Sends an error message to the collector for later use

Parameters

int $severity

Error severity, PHP error style (don't use E_USER_)

string $msg

Error message text

Returns

mixed —

getRaw()

getRaw() : mixed

Retrieves raw error data for custom formatter to use

Returns

mixed —

getHTMLFormatted()

getHTMLFormatted(\HTMLPurifier_Config  $config, array  $errors = null) : string

Default HTML formatting implementation for error messages

Parameters

\HTMLPurifier_Config $config

Configuration, vital for HTML output nature

array $errors

Errors array to display; used for recursion.

Returns

string —

_renderStruct()

_renderStruct(mixed  $ret, mixed  $struct, mixed  $line = null, mixed  $col = null) : mixed

Parameters

mixed $ret
mixed $struct
mixed $line
mixed $col

Returns

mixed —