MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / lib / htmlpurifier / HTMLPurifier / Definition.php
blob8f958e4798d55aaa800426bb981224b9372f5d7e
1 <?php
3 /**
4 * Super-class for definition datatype objects, implements serialization
5 * functions for the class.
6 */
7 class HTMLPurifier_Definition
10 /**
11 * Has setup() been called yet?
13 var $setup = false;
15 /**
16 * What type of definition is it?
18 var $type;
20 /**
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);
29 /**
30 * Setup function that aborts if already setup
31 * @param $config HTMLPurifier_Config instance
33 function setup($config) {
34 if ($this->setup) return;
35 $this->setup = true;
36 $this->doSetup($config);