table = unserialize ( file_get_contents ( $file ) ); } /** * Retrieves sole instance of the object. * * @param bool|HTMLPurifier_EntityLookup $prototype * Optional prototype of custom lookup table to overload with. * @return HTMLPurifier_EntityLookup */ public static function instance($prototype = false) { // no references, since PHP doesn't copy unless modified static $instance = null; if ($prototype) { $instance = $prototype; } elseif (! $instance) { $instance = new HTMLPurifier_EntityLookup (); $instance->setup (); } return $instance; } } // vim: et sw=4 sts=4