setup() public méthode

Sets up the entity lookup table from the serialized file contents.
public setup ( boolean $file = false )
$file boolean
Exemple #1
0
 /**
  * Retrieves sole instance of the object.
  * @static
  * @param Optional prototype of custom lookup table to overload with.
  */
 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;
 }
 public static function instance($prototype = false)
 {
     static $instance = null;
     if ($prototype) {
         $instance = $prototype;
     } elseif (!$instance) {
         $instance = new HTMLPurifier_EntityLookup();
         $instance->setup();
     }
     return $instance;
 }