Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / library / HTMLPurifier / Definition.php
bloba7408c97498eabfa586ca762f82ae102ae88a7c7
1 <?php
3 /**
4 * Super-class for definition datatype objects, implements serialization
5 * functions for the class.
6 */
7 abstract class HTMLPurifier_Definition
10 /**
11 * Has setup() been called yet?
13 public $setup = false;
15 /**
16 * What type of definition is it?
18 public $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 abstract protected function doSetup($config);
27 /**
28 * Setup function that aborts if already setup
29 * @param $config HTMLPurifier_Config instance
31 public function setup($config) {
32 if ($this->setup) return;
33 $this->setup = true;
34 $this->doSetup($config);
39 // vim: et sw=4 sts=4