MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mconnection.class
Ir para a documentação deste ficheiro.
1
<?php
6
class
SQLiteConnection
extends
MConnection
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
?>
MConnection
Definição
mconnection.class:4
MConnection\_error
_error()
Definição
mconnection.class:33
SQLiteConnection
Definição
mconnection.class:7
SQLiteConnection\_timestamptochar
_timestamptochar($timestamp)
Definição
mconnection.class:148
SQLiteConnection\_execute
_execute($sql)
Definição
mconnection.class:82
SQLiteConnection\_datetochar
_datetochar($date)
Definição
mconnection.class:162
SQLiteConnection\_error
_error($resource=null)
Definição
mconnection.class:68
SQLiteConnection\_close
_close()
Definição
mconnection.class:54
SQLiteConnection\_connect
_connect($dbhost, $LoginDB, $LoginUID, $LoginPWD, $persistent=true)
Definição
mconnection.class:35
SQLiteConnection\_chartodate
_chartodate($date)
Definição
mconnection.class:134
SQLiteConnection\_createquery
_createquery()
Definição
mconnection.class:106
SQLiteConnection\_chartotimestamp
_chartotimestamp($timestamp)
Definição
mconnection.class:120
SQLiteConnection\__construct
__construct($conf)
Definição
mconnection.class:17
SQLiteQuery
Definição
mquery.class:7
classes
database
sqlite
mconnection.class
Gerado por
1.10.0