Class HTMLPurifier_ErrorCollector

InheritanceHTMLPurifier_ErrorCollector

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

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

Hide inherited constants

ConstantValueDescriptionDefined 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

$_current protected property
protected $_current null
$_stacks protected property
protected $_stacks = [[]]
$context protected property
protected $context null
$errors protected property
protected $errors null
$generator protected property
protected $generator null
$lines protected property
protected $lines = []
$locale protected property
protected $locale null

Method Details

__construct() public method

public void __construct ( $context )
$context HTMLPurifier_Context
getHTMLFormatted() public method

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.

getRaw() public method

Retrieves raw error data for custom formatter to use

public void getRaw ( )
send() public method

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