Beispiel #1
0
 /**
  * @static
  * @return DefaultLang
  */
 public static function instance()
 {
     if (null === self::$instance) {
         self::$instance = new Lang();
     }
     return self::$instance;
 }
Beispiel #2
0
 public static function instance()
 {
     if (!isset(self::$instance)) {
         //$c = __CLASS__;
         $c = 'Lang';
         self::$instance = new $c();
     }
     return self::$instance;
 }