4 * Super-class for definition datatype objects, implements serialization
5 * functions for the class.
7 abstract class HTMLPurifier_Definition
11 * Has setup() been called yet?
13 public $setup = false;
16 * If true, write out the final definition object to the cache after
17 * setup. This will be true only if all invocations to get a raw
18 * definition object are also optimized. This does not cause file
19 * system thrashing because on subsequent calls the cached object
20 * is used and any writes to the raw definition object are short
21 * circuited. See enduser-customize.html for the high-level
24 public $optimized = null;
27 * What type of definition is it?
32 * Sets up the definition object into the final form, something
33 * not done by the constructor
34 * @param $config HTMLPurifier_Config instance
36 abstract protected function doSetup($config);
39 * Setup function that aborts if already setup
40 * @param $config HTMLPurifier_Config instance
42 public function setup($config) {
43 if ($this->setup
) return;
45 $this->doSetup($config);