diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-13 19:49:25 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-13 19:49:25 +0100 |
commit | 5e98c2183ae824ab6a1dd2dc22f8619a0d718977 (patch) | |
tree | 24ab567d403c967a8b33de8750053abeeca0125a /inc/poche/Database.class.php | |
parent | 38dafee05d52948fba4a06066d7b0343c8e3de9d (diff) | |
parent | 9f3148fec787a51f837549907130e8ec980a0547 (diff) | |
download | wallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.tar.gz wallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.tar.zst wallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.zip |
Merge pull request #450 from wallabag/dev1.5.0
1.5.0
Diffstat (limited to 'inc/poche/Database.class.php')
-rw-r--r-- | inc/poche/Database.class.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 0457af69..9f553fa1 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -318,6 +318,12 @@ class Database { | |||
318 | $query = $this->executeQuery($sql_action, $params_action); | 318 | $query = $this->executeQuery($sql_action, $params_action); |
319 | } | 319 | } |
320 | 320 | ||
321 | public function archiveAll($user_id) { | ||
322 | $sql_action = "UPDATE entries SET is_read=? WHERE user_id=? AND is_read=?"; | ||
323 | $params_action = array($user_id, 1, 0); | ||
324 | $query = $this->executeQuery($sql_action, $params_action); | ||
325 | } | ||
326 | |||
321 | public function getLastId($column = '') { | 327 | public function getLastId($column = '') { |
322 | return $this->getHandle()->lastInsertId($column); | 328 | return $this->getHandle()->lastInsertId($column); |
323 | } | 329 | } |