Dummy_Db.class
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <?php
- class Dummy_Db extends BaseObject {
- var $db;
- var $debug;
- var $db_connection_handle;
- var $connection_init;
- Function Dummy_Db() {
- $this->BaseObject( 'Dummy_Db' );
- $this->db = new DbDefaults();
- $this->debug = new Debug();
- $this->debug->prefix = 'Dummy_Db::MAIN';
- $this->db_connection_handle = false;
- $this->connection_init = false;
- } /* END Dummy_Db() */
- Function BuildConnectString() {}
- Function CreateConnection() { return array( false ); }
- Function Open() { return $this->CreateConnection(); }
- Function DestroyConnection() { return array( false ); }
- Function Close() { return $this->DestroyConnection(); }
- Function PrepareSql( $sql ) {
- $temp = new Dummy_DbDriver();
- return $temp;
- }
- Function prepare( $sql ) { return $this->PrepareSql( $sql ); }
- Function ListAllTables() { return array(false); }
- }
- ?>