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:
friendica
2013-04-17 01:47:36 -07:00
parent 23f897b8ae
commit 3e1b005de0
4 changed files with 134 additions and 1 deletions

10
include/dba_driver.php Normal file
View 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();
}