Öffentliche Methoden | |
getChild ($type, $id) | |
addError ($severity, $message) | |
Datenfelder | |
const | TOKEN = 0 |
const | ATTR = 1 |
const | CSSPROP = 2 |
$type | |
$value | |
$errors = array() | |
$children = array() | |
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.
Definiert in Zeile 9 der Datei ErrorStruct.php.
addError | ( | $severity, | |
$message | |||
) |
int | $severity | |
string | $message |
Definiert in Zeile 68 der Datei ErrorStruct.php.
getChild | ( | $type, | |
$id | |||
) |
string | $type | |
string | $id |
Definiert in Zeile 55 der Datei ErrorStruct.php.
Benutzt $type.
$children = array() |
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'] array
Definiert in Zeile 48 der Datei ErrorStruct.php.
$errors = array() |
Errors registered for this structure. array
Definiert in Zeile 40 der Datei ErrorStruct.php.
$type |
Type of this struct. string
Definiert in Zeile 24 der Datei ErrorStruct.php.
Wird benutzt von getChild().
$value |
Value of the struct we are recording errors for. There are various values for this:
Definiert in Zeile 34 der Datei ErrorStruct.php.
const ATTR = 1 |
Definiert in Zeile 17 der Datei ErrorStruct.php.
Wird benutzt von HTMLPurifier_ErrorCollector\send().
const CSSPROP = 2 |
Definiert in Zeile 18 der Datei ErrorStruct.php.
Wird benutzt von HTMLPurifier_ErrorCollector\send().
const TOKEN = 0 |
Possible values for $children first-key. Note that top-level structures are automatically token-level.
Definiert in Zeile 16 der Datei ErrorStruct.php.
Wird benutzt von HTMLPurifier_ErrorCollector\send().