diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-07-04 13:11:09 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-07-04 13:11:09 +0200 |
commit | 8c2375a07443231cad32bd4cbd1d9ffbd1aa5087 (patch) | |
tree | d7ccfa4c0a24a039b28f7808462465a5d13833de /program/include/rcube_db_sqlite.php | |
parent | 3e386efeee7cd62fd2b04e3fd2a3b068dd326e0d (diff) |
More CS fixes and comments
Diffstat (limited to 'program/include/rcube_db_sqlite.php')
-rw-r--r-- | program/include/rcube_db_sqlite.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/program/include/rcube_db_sqlite.php b/program/include/rcube_db_sqlite.php index fe6b0dca9..1fcecd6da 100644 --- a/program/include/rcube_db_sqlite.php +++ b/program/include/rcube_db_sqlite.php @@ -31,11 +31,16 @@ */ class rcube_db_sqlite extends rcube_db { - + /** + * Database character set + */ protected function set_charset($charset) { } + /** + * Prepare connection + */ protected function conn_prepare($dsn) { // Create database file, required by PDO to exist on connection @@ -44,6 +49,9 @@ class rcube_db_sqlite extends rcube_db } } + /** + * Configure connection, create database if not exists + */ protected function conn_configure($dsn, $dbh) { // we emulate via callback some missing functions @@ -74,7 +82,6 @@ class rcube_db_sqlite extends rcube_db } } - /** * Callback for sqlite: unix_timestamp() */ @@ -94,7 +101,6 @@ class rcube_db_sqlite extends rcube_db return $ret; } - /** * Callback for sqlite: now() */ @@ -103,7 +109,6 @@ class rcube_db_sqlite extends rcube_db return date("Y-m-d H:i:s"); } - /** * Returns list of tables in database * @@ -126,7 +131,6 @@ class rcube_db_sqlite extends rcube_db return $this->tables; } - /** * Returns list of columns in database table * @@ -161,7 +165,9 @@ class rcube_db_sqlite extends rcube_db return $columns; } - + /** + * Build DSN string for PDO constructor + */ protected function dsn_string($dsn) { return $dsn['phptype'] . ':' . $dsn['database']; |