Пример #1
0
 /**
 	Initialises a new sqlite dummy prepared statement with a given query.
 
 	@param	$oDb	The database to use.
 	@param	$sQuery	The query.
 */
 public function __construct(weeSQLiteDatabase $oDb, $sQuery, SQLiteDatabase $oSQLiteDb)
 {
     parent::__construct($oDb, $sQuery);
     $this->oSQLiteDb = $oSQLiteDb;
 }
Пример #2
0
 /**
 	Initialises a new sqlite dummy prepared statement with a given query.
 
 	@param	$oDb	The database to use.
 	@param	$sQuery	The query.
 */
 public function __construct(weeMSSQLDatabase $oDb, $rLink, $sQuery)
 {
     is_resource($rLink) && get_resource_type($rLink) == 'mssql link' or burn('InvalidArgumentException', sprintf(_WT('The given variable must be a resource of type "%s".'), 'mssql link'));
     parent::__construct($oDb, $sQuery);
     $this->rLink = $rLink;
 }