|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
-
-
- class HTMLPurifier_ErrorStruct
- {
-
-
-
- const TOKEN = 0;
- const ATTR = 1;
- const CSSPROP = 2;
-
-
-
- public $type;
-
-
-
- public $value;
-
-
-
- public $errors = array();
-
-
-
- public $children = array();
-
-
-
- public function getChild($type, $id)
- {
- if (!isset($this->children[$type][$id])) {
- $this->children[$type][$id] = new HTMLPurifier_ErrorStruct();
- $this->children[$type][$id]->type = $type;
- }
- return $this->children[$type][$id];
- }
-
-
-
- public function addError($severity, $message)
- {
- $this->errors[] = array($severity, $message);
- }
- }
-
-
|