コード例 #1
0
 /**
  * Enter description here...
  *
  * @return ADOConnection
  */
 static function getDatabaseService()
 {
     return _DevblocksDatabaseManager::getInstance();
 }
コード例 #2
0
 static function getInstance()
 {
     if (null == self::$instance) {
         // Bail out early for pre-install
         if ('' == APP_DB_DRIVER || '' == APP_DB_HOST) {
             return null;
         }
         self::$instance = new _DevblocksDatabaseManager();
     }
     return self::$instance;
 }