1 | <?php |
||
3 | class HTMLPurifier_ConfigSchema_InterchangeBuilder |
||
|
|||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Used for processing DEFAULT, nothing else. |
||
8 | * @type HTMLPurifier_VarParser |
||
9 | */ |
||
10 | protected $varParser; |
||
11 | |||
12 | /** |
||
13 | * @param HTMLPurifier_VarParser $varParser |
||
14 | */ |
||
15 | public function __construct($varParser = null) |
||
19 | |||
20 | /** |
||
21 | * @param string $dir |
||
22 | * @return HTMLPurifier_ConfigSchema_Interchange |
||
23 | */ |
||
24 | public static function buildFromDirectory($dir = null) |
||
30 | |||
31 | /** |
||
32 | * @param HTMLPurifier_ConfigSchema_Interchange $interchange |
||
33 | * @param string $dir |
||
34 | * @return HTMLPurifier_ConfigSchema_Interchange |
||
35 | */ |
||
36 | public function buildDir($interchange, $dir = null) |
||
62 | |||
63 | /** |
||
64 | * @param HTMLPurifier_ConfigSchema_Interchange $interchange |
||
65 | * @param string $file |
||
66 | */ |
||
67 | public function buildFile($interchange, $file) |
||
75 | |||
76 | /** |
||
77 | * Builds an interchange object based on a hash. |
||
78 | * @param HTMLPurifier_ConfigSchema_Interchange $interchange HTMLPurifier_ConfigSchema_Interchange object to build |
||
79 | * @param HTMLPurifier_StringHash $hash source data |
||
80 | * @throws HTMLPurifier_ConfigSchema_Exception |
||
81 | */ |
||
82 | public function build($interchange, $hash) |
||
101 | |||
102 | /** |
||
103 | * @param HTMLPurifier_ConfigSchema_Interchange $interchange |
||
104 | * @param HTMLPurifier_StringHash $hash |
||
105 | * @throws HTMLPurifier_ConfigSchema_Exception |
||
106 | */ |
||
107 | public function buildDirective($interchange, $hash) |
||
175 | |||
176 | /** |
||
177 | * Evaluates an array PHP code string without array() wrapper |
||
178 | * @param string $contents |
||
179 | */ |
||
180 | protected function evalArray($contents) |
||
184 | |||
185 | /** |
||
186 | * Converts an array list into a lookup array. |
||
187 | * @param array $array |
||
188 | * @return array |
||
189 | */ |
||
190 | protected function lookup($array) |
||
198 | |||
199 | /** |
||
200 | * Convenience function that creates an HTMLPurifier_ConfigSchema_Interchange_Id |
||
201 | * object based on a string Id. |
||
202 | * @param string $id |
||
203 | * @return HTMLPurifier_ConfigSchema_Interchange_Id |
||
204 | */ |
||
205 | protected function id($id) |
||
209 | |||
210 | /** |
||
211 | * Triggers errors for any unused keys passed in the hash; such keys |
||
212 | * may indicate typos, missing values, etc. |
||
213 | * @param HTMLPurifier_StringHash $hash Hash to check. |
||
214 | */ |
||
215 | protected function _findUnused($hash) |
||
224 | } |
||
225 | |||
227 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.