Esempio n. 1
0
 public static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new DBMS();
     }
     return self::$instance;
 }
Esempio n. 2
0
 /**
  * Returns corresponding instance of DBMS class.
  * 
  * @return 
  */
 public static function getDBMS()
 {
     if (is_null(self::$dbmsInstance)) {
         if (self::$IMPROVED) {
             ImprovedDBMS::init(self::$config);
             self::$dbmsInstance = ImprovedDBMS::getInstance();
         } else {
             DBMS::init(self::$config);
             self::$dbmsInstance = DBMS::getInstance();
         }
     }
     return self::$dbmsInstance;
 }