-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiDb.interface.php
More file actions
48 lines (38 loc) · 1.69 KB
/
iDb.interface.php
File metadata and controls
48 lines (38 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Database interface, all classes must implement this
* Provides function and variable definitions that must be used
*
* @package dblib
* @author Jamie Hurst
* @version 1.3
*/
/**
* Interface for database classes
*/
interface iDb {
public function applyObject($object);
public function setupDb($host = null, $user = null, $pass = null, $db = null);
public function connectDb($host = null, $user = null, $pass = null, $db = null);
public function isConnected();
public function closeDb();
public function getQueryCount();
public function escape($str);
public function getField($field, $table, $opt = '', $optValues = '');
public function getFields($fields, $table, $opt = '', $optValues = '');
public function getRow($table, $opt = '', $optValues = '');
public function getRows($table, $opt = '', $optValues = '');
public function getNumRows($table, $opt = '', $optValues = '');
public function getJoinedFields($fields, $table, $joins = array(), $opt = '', $optValues = '');
public function getJoinedRow($table, $joins = array(), $opt = '', $optValues = '');
public function getJoinedRows($table, $joins = array(), $opt = '', $optValues = '');
public function getJoinedRowsOfFields($fields, $table, $joins = array(), $opt = '', $optValues = '');
public function getNumJoinedRows($table, $joins = array(), $opt = '', $optValues = '');
public function insertRow($table, $data);
public function replaceRow($table, $data);
public function updateRows($table, $data, $opt = '', $optValues = '');
public function deleteRows($table, $opt = '', $optValues = '');
public function rawQuery($query, $optValues = '');
public function insertId();
public static function getInstance();
}