4 * Super-class for definition datatype objects, implements serialization
5 * functions for the class.
7 class HTMLPurifier_Definition
11 * Has setup() been called yet?
16 * What type of definition is it?
21 * Sets up the definition object into the final form, something
22 * not done by the constructor
23 * @param $config HTMLPurifier_Config instance
25 function doSetup($config) {
26 trigger_error('Cannot call abstract method', E_USER_ERROR
);
30 * Setup function that aborts if already setup
31 * @param $config HTMLPurifier_Config instance
33 function setup($config) {
34 if ($this->setup
) return;
36 $this->doSetup($config);