21 public function setup($file =
false)
24 $file = HTMLPURIFIER_PREFIX .
'/HTMLPurifier/EntityLookup/entities.ser';
26 $this->table = unserialize(file_get_contents($file));
34 public static function instance($prototype =
false)
37 static $instance = null;
39 $instance = $prototype;
40 } elseif (!$instance) {
setup($file=false)
Sets up the entity lookup table from the serialized file contents.
Object that provides entity lookup table from entity name to character.
$table
Assoc array of entity name to character represented.
static instance($prototype=false)
Retrieves sole instance of the object.