public function setup($file = false)
    {
        if (!$file) {
            $file = HTMLPURIFIER_PREFIX . '/HTMLPurifier/EntityLookup/entities.ser';
        }
        $this->table = unserialize(file_get_contents($file));
    }
public function setup($file = false)
    {
        if (!$file) {
            $file = HTMLPURIFIER_PREFIX . '/HTMLPurifier/EntityLookup/entities.ser';
        }
        $this->table = unserialize(file_get_contents($file));
    }
public function setup ( $ file = false ) { if ( ! $ file ) { $ file = HTMLPURIFIER_PREFIX . '/HTMLPurifier/EntityLookup/entities.ser' ; } $ this -> table = unserialize ( file_get_contents ( $ file ) ) ; }
Sets up the entity lookup table from the serialized file contents.
@param bool $file
@note The serialized contents are versioned, but were generated
using the maintenance script generate_entity_file.php
@warning This is not in constructor to help enforce the Singleton
Sets up the entity lookup table from the serialized file contents .