3 * Pseudo interface to be implemented (ehm, inherited) by the rest
6 abstract class interfaceSql
{
12 * just a function to trigger an error in the eventuality of using
13 * an unsupported DB_TYPE connection (usually because of a config error)
15 * TODO: this can be done more elegantly using an exception in the
18 * @param string $dbHost
19 * @param string $dbUser
20 * @param string $dbPass
22 public function __construct( $dbHost = null, $dbUser = null, $dbPass = null ) {}
24 public function __destruct() {}
26 private function connect() {}
28 public function selectDatabase($incData) {}
30 public function escape ($incData) {}
32 public function query($query) {}
34 public function getRow () {}
36 public function getAssoc () {}
38 public function getArray () {}
40 public function getFirst () {}
42 public function close () {}
44 abstract public function _SELECT($incObj);
46 abstract public function _CREATE();
48 abstract public function _SET();
50 abstract public function _INSERT($incOb);
52 abstract public function _UPDATE($incOb);
54 abstract public function _FROM($incData);
56 abstract public function _AND();
58 abstract public function _OR();
60 abstract public function _JOIN ($type);
62 abstract public function _AS($str);
64 abstract public function _LIMIT($start = 0, $end = 0);
66 abstract public function _GROUP($incObj = null);
68 abstract public function _ORDER($orderBys = null);
70 abstract public function _WHERE ($clause);
73 abstract class interfaceSqlField
{
74 static public $validTypes = array ('INT');
78 public function __construct () {}
79 public function __destruct () {}
82 abstract class interfaceSqlJoin
{
90 public function __construct () {}
91 public function __destruct () {}
94 abstract class interfaceSqlResource
{
97 public function __construct () {}
98 public function __destruct () {}
101 class interfaceSqlOrder
{
102 public function __construct () {}
103 public function __destruct () {}