HTMLPurifier 4.4.0
|
00001 <?php 00002 00009 class HTMLPurifier_ErrorStruct 00010 { 00011 00016 const TOKEN = 0; 00017 const ATTR = 1; 00018 const CSSPROP = 2; 00019 00023 public $type; 00024 00032 public $value; 00033 00037 public $errors = array(); 00038 00044 public $children = array(); 00045 00046 public function getChild($type, $id) { 00047 if (!isset($this->children[$type][$id])) { 00048 $this->children[$type][$id] = new HTMLPurifier_ErrorStruct(); 00049 $this->children[$type][$id]->type = $type; 00050 } 00051 return $this->children[$type][$id]; 00052 } 00053 00054 public function addError($severity, $message) { 00055 $this->errors[] = array($severity, $message); 00056 } 00057 00058 } 00059 00060 // vim: et sw=4 sts=4