diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-07 11:44:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-07 11:44:26 +0000 |
| commit | 642cb7e4357030d61f9ff56498aeaa590c7699cf (patch) | |
| tree | def4e09ccdb7d3211eff3a61fc79c9b1577b5ddf /roundcubemail/program/include/rcube_addressbook.php | |
| parent | ac1af6d3daf377002fb9875c49dde0a0025a980a (diff) | |
- Added possibility to undo last contact delete operation
git-svn-id: https://svn.roundcube.net/trunk@4916 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_addressbook.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_addressbook.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_addressbook.php b/roundcubemail/program/include/rcube_addressbook.php index cefe4612f..3581b83d1 100644 --- a/roundcubemail/program/include/rcube_addressbook.php +++ b/roundcubemail/program/include/rcube_addressbook.php @@ -38,6 +38,7 @@ abstract class rcube_addressbook public $primary_key; public $groups = false; public $readonly = true; + public $undelete = false; public $ready = false; public $group_id = null; public $list_page = 1; @@ -256,7 +257,17 @@ abstract class rcube_addressbook } /** - * Remove all records from the database + * Unmark delete flag on contact record(s) + * + * @param array Record identifiers + */ + function undelete($ids) + { + /* empty for read-only address books */ + } + + /** + * Mark all records in database as deleted */ function delete_all() { |
