Example #1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }