Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (null == self::$instance) {
         $instance = new self();
         $instance->set_obfuscator(new Tribe__Support__Obfuscator($instance->must_obfuscate_prefixes));
         self::$instance = $instance;
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     if (null == self::$instance) {
         $className = __CLASS__;
         self::$instance = new $className();
     }
     return self::$instance;
 }