\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 : 

Type

$_current

$_current : 

Type

$_stacks

$_stacks : 

Type

$locale

$locale : 

Type

$generator

$generator : 

Type

$context

$context : 

Type

$lines

$lines : 

Type

Methods

send()

send(integer  $severity, string  $msg) 

Sends an error message to the collector for later use

Parameters

integer $severity

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

string $msg

Error message text

getRaw()

getRaw() 

Retrieves raw error data for custom formatter to use

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(  $ret,   $struct,   $line = null,   $col = null) 

Parameters

$ret
$struct
$line
$col