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.
Methods | ||
---|---|---|
public
|
getChild(string $type, string $id): mixed
|
# |
public
|
addError(int $severity, string $message)
|
# |
Constants | ||
---|---|---|
public
|
TOKEN = 0
Possible values for $children first-key. Note that top-level structures
are automatically token-level.
Possible values for $children first-key. Note that top-level structures are automatically token-level. |
# |
public
|
ATTR = 1
|
# |
public
|
CSSPROP = 2
|
# |
Properties | |||
---|---|---|---|
public
|
|
$type
Type of this struct.
Type of this struct. |
# |
public
|
|
$value
Value of the struct we are recording errors for. There are various
values for this:
- TOKEN: Instance of HTMLPurifier…
Value of the struct we are recording errors for. There are various values for this:
|
# |
public
|
|
$errors = []
Errors registered for this structure.
Errors registered for this structure. |
# |
public
|
|
$children = []
Child ErrorStructs that are from this structure. For example, a TOKEN
ErrorStruct would contain ATTR ErrorStructs. This…
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'] |
# |