From 19537d238e61248b0f5d2a643b76597595c32e55 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 20 Feb 2008 22:57:32 +0000 Subject: Add (currently unused) function to delete all contacts + update changelog git-svn-id: https://svn.roundcube.net/trunk@1126 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/CHANGELOG | 2 ++ roundcubemail/program/include/rcube_contacts.inc | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index c95d30605..0114bd097 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -4,7 +4,9 @@ CHANGELOG RoundCube Webmail 2008/02/20 (thomasb) ---------- - Localize folder name in page title (#1484785) +- Fix code using wrong variable name (#1484018) - Allow to send mail with BCC recipients only +- Remove MDN headers before saving in sent folder 2008/02/12 (estadtherr) ---------- diff --git a/roundcubemail/program/include/rcube_contacts.inc b/roundcubemail/program/include/rcube_contacts.inc index f01d22279..6a4865662 100644 --- a/roundcubemail/program/include/rcube_contacts.inc +++ b/roundcubemail/program/include/rcube_contacts.inc @@ -386,6 +386,19 @@ class rcube_contacts return $this->db->affected_rows(); } + + + /** + * Remove all records from the database + */ + function delete_all() + { + if (is_array($ids)) + $ids = join(',', $ids); + + $this->db->query("DELETE FROM {$this->db_name} WHERE user_id=?", $this->user_id); + return $this->db->affected_rows(); + } } -- cgit v1.2.3