Example #1
0
 public static function instance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 public static function autoRun()
 {
     if (self::$_enableLoader) {
         if (!self::$_instance instanceof loader) {
             self::$_instance = new self();
         }
     }
 }