\HTMLPurifier_ErrorStruct
Records errors for particular segments of an HTML document such as tokens, attributes or CSS properties. They can contain error structs (which apply to components of what they represent), but their main purpose is to hold errors applying to whatever struct is being used.
Synopsis
class HTMLPurifier_ErrorStruct
{
- // constants
- const TOKEN = 0;
- const ATTR = 1;
- const CSSPROP = 2;
Constants
Name | Value |
---|---|
TOKEN | 0 |
ATTR | 1 |
CSSPROP | 2 |
Members
public
-
$children
Child ErrorStructs that are from this structure. For example, a TOKEN ErrorStruct would contain ATTR ErrorStructs. This is a multi-dimensional array in structure: [TYPE]['identifier'] -
$errors
Errors registered for this structure. -
$type
Type of this struct. -
$value
Value of the struct we are recording errors for. There are various values for this: - TOKEN: Instance of HTMLPurifier_Token - ATTR: array('attr-name', 'value') - CSSPROP: array('prop-name', 'value')