program/include/rcube_contacts.inc
@@ -128,6 +128,13 @@ /** * Close connection to source * Called on script shutdown */ function close(){} /** * List the current set of contact records * * @param array List of cols to show @@ -379,6 +386,19 @@ 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(); } }