Esempio n. 1
0
 /**
  * Get the singleton instance of this class
  */
 public static function getInstance()
 {
     if (!self::$instance instanceof LocaleUtil) {
         self::$instance = new LocaleUtil();
     }
     return self::$instance;
 }
Esempio n. 2
0
 /**
  * Get the singleton instance of this class
  */
 public static function getInstance()
 {
     if (!is_a(self::$instance, 'LocaleUtil')) {
         self::$instance = new LocaleUtil();
     }
     return self::$instance;
 }