1: <?php
2: namespace {
3: /**
4: * sqlite class
5: *
6: * This class should be responsible for all sqlite Database activities
7: *
8: * @author Sartaj Singh
9: * @copyright 2007
10: * @version 4.0.0
11: */
12: class Sqlite extends \Sphp\kit\DbEngine{
13: public static $dlink;
14: public static $isConnect = false;
15: public $all_query_ok = true;
16: /**
17: * Class Constructor
18: * This returns the sqlite class object
19: * @return sqlite
20: */
21: public function connect($db1 = "", $dhost1 = "", $duser1 = "", $dpass1 = "") {}
22: public function cleanQuery($string) {}
23: public function clearQuery($string) {}
24: public function executeQuery($sql) {}
25: public function executeQueryQuick($sql) {}
26: public function commit() {}
27: public function getDatabaseLink() {}
28: public function prepare($sql) {}
29: public function disconnect() {}
30: public function updateSQL($frm, $txttbl, $where) {}
31: public function insertSQL($frm, $txttbl) {}
32: public function searchSQL($frm, $tbllist, $where, $OP) {}
33: public function createDatabase() {}
34: public function createTable($sql) {}
35: public function dropTable($tableName) {}
36: public function isRecordExist($sql) {}
37: public function row_fetch_assoc($result) {}
38: public function row_fetch_array($result) {}
39: public function last_insert_id() {}
40: public function fetchQuery($sql = "", $ttl = 0, $filename = "", $key = "id", $issave = false) {}
41: /**
42: * List Tables in Database. execute SHOW TABLES query. Override this function when you need to
43: * create of database adapter.
44: * @return array
45: */
46: public function getDbTables() {}
47: /**
48: * List Fields in a Table. Override this function when you need to
49: * create of database adapter. Default work with MySQL
50: * @param string $tablename <p>
51: * pass table name in database
52: * </p>
53: * @return array
54: */
55: public function getTableColumns($tablename) {}
56: /**
57: * Check if result has rows of data
58: * @param Result Object From Database $param
59: * @return boolean true if rows exist
60: */
61: public function is_rows($result) {}
62: }
63: }