MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mconnection.class
Ir para a documentação deste ficheiro.
1<?php
7{
17 function __construct($conf)
18 {
19 parent::__construct($conf);
20 }
21
35 function _connect($dbhost, $LoginDB, $LoginUID, $LoginPWD, $persistent = true)
36 {
37 if (false && $persistent)
38 {
39 $this->id = sqlite_open($LoginDB);
40 }
41 else
42 {
43 $this->id = sqlite_open($LoginDB);
44 }
45 }
46
54 function _close()
55 {
56 sqlite_close ($this->id);
57 }
58
68 function _error($resource = null)
69 {
70 return (($error = sqlite_last_error($this->id)) ? sqlite_error_string($error) : false);
71 }
72
82 function _execute($sql)
83 {
84 $success = @sqlite_exec($this->id, $sql);
85
86 if ($success)
87 {
88 $this->affectedrows = sqlite_changes($this->id);
89 unset ($rs);
90 }
91 else
92 {
93 $this->traceback[] = $this->_error($this->id);
94 }
95
96 return $success;
97 }
98
106 function _createquery()
107 {
108 return new SQLiteQuery();
109 }
110
120 function _chartotimestamp($timestamp)
121 {
122 return $timestamp;
123 }
124
134 function _chartodate($date)
135 {
136 return $date;
137 }
138
148 function _timestamptochar($timestamp)
149 {
150 return $timestamp;
151 }
152
162 function _datetochar($date)
163 {
164 return $date;
165 }
166}
167?>
_timestamptochar($timestamp)
_error($resource=null)
_connect($dbhost, $LoginDB, $LoginUID, $LoginPWD, $persistent=true)
_chartotimestamp($timestamp)