HTMLPurifier_ErrorCollector
in package
Error collection class that enables HTML Purifier to report HTML problems back to the user
Table of Contents
Constants
- CHILDREN = 3
- LINENO = 0
- Identifiers for the returned error array. These are purposely numeric so list() can be used.
- MESSAGE = 2
- SEVERITY = 1
Properties
- $_current : mixed
- $_stacks : mixed
- $context : mixed
- $errors : mixed
- $generator : mixed
- $lines : mixed
- $locale : mixed
Methods
- __construct() : mixed
- getHTMLFormatted() : string
- Default HTML formatting implementation for error messages
- getRaw() : mixed
- Retrieves raw error data for custom formatter to use
- send() : mixed
- Sends an error message to the collector for later use
- _renderStruct() : mixed
Constants
CHILDREN
public
mixed
CHILDREN
= 3
LINENO
Identifiers for the returned error array. These are purposely numeric so list() can be used.
public
mixed
LINENO
= 0
MESSAGE
public
mixed
MESSAGE
= 2
SEVERITY
public
mixed
SEVERITY
= 1
Properties
$_current
protected
mixed
$_current
Tags
$_stacks
protected
mixed
$_stacks
= array(array())
Tags
$context
protected
mixed
$context
Tags
$errors
protected
mixed
$errors
Tags
$generator
protected
mixed
$generator
Tags
$lines
protected
mixed
$lines
= array()
Tags
$locale
protected
mixed
$locale
Tags
Methods
__construct()
public
__construct(HTMLPurifier_Context $context) : mixed
Parameters
- $context : HTMLPurifier_Context
getHTMLFormatted()
Default HTML formatting implementation for error messages
public
getHTMLFormatted(HTMLPurifier_Config $config[, array<string|int, mixed> $errors = null ]) : string
Parameters
- $config : HTMLPurifier_Config
-
Configuration, vital for HTML output nature
- $errors : array<string|int, mixed> = null
-
Errors array to display; used for recursion.
Return values
stringgetRaw()
Retrieves raw error data for custom formatter to use
public
getRaw() : mixed
send()
Sends an error message to the collector for later use
public
send(int $severity, string $msg) : mixed
Parameters
- $severity : int
-
Error severity, PHP error style (don't use E_USER_)
- $msg : string
-
Error message text
_renderStruct()
private
_renderStruct(mixed &$ret, mixed $struct[, mixed $line = null ][, mixed $col = null ]) : mixed
Parameters
- $ret : mixed
- $struct : mixed
- $line : mixed = null
- $col : mixed = null