Public Member Functions | |
SQLDb ($conf=NULL) | |
lastInsertRowId () | |
numRows () | |
escapeString ($s) | |
open ($name="") | |
execute ($sql) | |
getRow () | |
close () |
SQLDb - wrapper class for database interactions.
Definition at line 44 of file SQLDb.php.
SQLDb::escapeString | ( | $ | s ) |
SQLDb::execute | ( | $ | sql ) |
execute - run a set of SQL commands
$sql | - SQL statement(s) |
Definition at line 152 of file SQLDb.php.
References Model::error(), and Model::errorCount().
SQLDb::getRow | ( | ) |
getRow - get a table row based on previous executed query
Definition at line 207 of file SQLDb.php.
References Model::error(), and Model::errorCount().
SQLDb::lastInsertRowId | ( | ) |
SQLDb::numRows | ( | ) |
SQLDb::open | ( | $ | name = "" ) |
open - Open a SQLite Database connection
name | - optional, if provide set the db name and open it. |
Definition at line 106 of file SQLDb.php.
References Model::error(), and Model::errorCount().
Referenced by SQLDb().
SQLDb::SQLDb | ( | $ | conf = NULL ) |
$conf | - a configuring Model |
Definition at line 48 of file SQLDb.php.
References Model::Model(), and open().