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?
14 public $setup = false;
17 * If true, write out the final definition object to the cache after
18 * setup. This will be true only if all invocations to get a raw
19 * definition object are also optimized. This does not cause file
20 * system thrashing because on subsequent calls the cached object
21 * is used and any writes to the raw definition object are short
22 * circuited. See enduser-customize.html for the high-level
26 public $optimized = null;
29 * What type of definition is it?
35 * Sets up the definition object into the final form, something
36 * not done by the constructor
37 * @param HTMLPurifier_Config $config
39 abstract protected function doSetup($config);
42 * Setup function that aborts if already setup
43 * @param HTMLPurifier_Config $config
45 public function setup($config)
51 $this->doSetup($config);