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

Summary

Methods
Properties
Constants
getChild()
addError()
$type
$value
$errors
$children
TOKEN
ATTR
CSSPROP
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TOKEN

TOKEN = 0

Possible values for $children first-key. Note that top-level structures are automatically token-level.

ATTR

ATTR = 1

CSSPROP

CSSPROP = 2

Properties

$type

$type : 

Type of this struct.

Type

$value

$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')

Type

$errors

$errors : 

Errors registered for this structure.

Type

$children

$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']

Type

Methods

getChild()

getChild(string  $type, string  $id) : mixed

Parameters

string $type
string $id

Returns

mixed

addError()

addError(integer  $severity, string  $message) 

Parameters

integer $severity
string $message