start of DB driver abstraction class (we'll need similar mechanisms for the GD/ImageMagick photo stuff and perhaps also for abstracting alternate "social networks")
This commit is contained in:
10
include/dba_driver.php
Normal file
10
include/dba_driver.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php /** @file */
|
||||
|
||||
abstract class dba_driver {
|
||||
|
||||
abstract protected function connect($server,$user,$pass,$db);
|
||||
abstract protected function q($sql);
|
||||
abstract protected function escape($str);
|
||||
abstract protected function close();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user