diff options
author | Simon Rettberg | 2015-01-20 18:07:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-01-20 18:07:24 +0100 |
commit | 1ff2bc4f3c694b7c76df8e57056c51ca39a23a34 (patch) | |
tree | 0eb19164af66b3d4e8bf639a710f323b631d23ee /inc/database.inc.php | |
parent | Rework config module class structure. Still some TODOs though.... (diff) | |
download | slx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.tar.gz slx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.tar.xz slx-admin-1ff2bc4f3c694b7c76df8e57056c51ca39a23a34.zip |
config module structure completed. Many other fixes. Hidden pw field support.
Diffstat (limited to 'inc/database.inc.php')
-rw-r--r-- | inc/database.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/database.inc.php b/inc/database.inc.php index 2c535d04..efc330fe 100644 --- a/inc/database.inc.php +++ b/inc/database.inc.php @@ -20,7 +20,7 @@ class Database */ public static function getExpectedSchemaVersion() { - return 8; + return 9; } public static function needSchemaUpdate() @@ -47,7 +47,8 @@ class Database /** * If you just need the first row of a query you can use this. - * Will return an associative array, or false if no row matches the query + * + * @return array|boolean Associative array representing row, or false if no row matches the query */ public static function queryFirst($query, $args = array(), $ignoreError = false) { @@ -64,6 +65,7 @@ class Database * * @param string $query Query to run * @param array $args Arguments to query + * @param boolean $ignoreError Ignore query errors and just return false * @return int|boolean Number of rows affected, or false on error */ public static function exec($query, $args = array(), $ignoreError = false) |