diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-12 05:14:04 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-12 05:14:04 -0700 |
commit | 667009727a38890eb651815843c1bc02869a4119 (patch) | |
tree | fc3cdb9f2c7659c2d6a1bfe04a34d2430629612c /inc/poche/Database.class.php | |
parent | 82757801b9e9cdc8806c0005c290f05124f91ba6 (diff) | |
parent | 15493df62db830a0834a74c240bbb9d8889ae1de (diff) | |
download | wallabag-667009727a38890eb651815843c1bc02869a4119.tar.gz wallabag-667009727a38890eb651815843c1bc02869a4119.tar.zst wallabag-667009727a38890eb651815843c1bc02869a4119.zip |
Merge pull request #132 from inthepoche/dev
merge with beta2
Diffstat (limited to 'inc/poche/Database.class.php')
-rw-r--r-- | inc/poche/Database.class.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index cd5a9a31..84916b83 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -184,6 +184,13 @@ class Database { | |||
184 | return $entries; | 184 | return $entries; |
185 | } | 185 | } |
186 | 186 | ||
187 | public function updateContent($id, $content, $user_id) { | ||
188 | $sql_action = 'UPDATE entries SET content = ? WHERE id=? AND user_id=?'; | ||
189 | $params_action = array($content, $id, $user_id); | ||
190 | $query = $this->executeQuery($sql_action, $params_action); | ||
191 | return $query; | ||
192 | } | ||
193 | |||
187 | public function add($url, $title, $content, $user_id) { | 194 | public function add($url, $title, $content, $user_id) { |
188 | $sql_action = 'INSERT INTO entries ( url, title, content, user_id ) VALUES (?, ?, ?, ?)'; | 195 | $sql_action = 'INSERT INTO entries ( url, title, content, user_id ) VALUES (?, ?, ?, ?)'; |
189 | $params_action = array($url, $title, $content, $user_id); | 196 | $params_action = array($url, $title, $content, $user_id); |