示例#1
0
 public function connect()
 {
     if (self::$connection === null) {
         $this->Db = self::$connection = new SQLiteDatabase(DB_SQLITE_FILENAME, DB_SQLITE_MODE);
     }
     return self::$connection;
 }
示例#2
0
文件: sqlite.php 项目: no2key/ZanPHP
 /**
  * Make connection
  *
  * @return object value
  */
 public function connect()
 {
     if (self::$connection === NULL) {
         $this->Db = self::$connection = new SQLiteDatabase(_dbFilename, _dbMode);
     }
     return self::$connection;
 }