Example #1
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         try {
             self::$instance = new self();
         } catch (Exception $e) {
             self::$instance = false;
         }
     }
     return self::$instance;
 }