summaryrefslogtreecommitdiff
path: root/program/include/rcube_addressbook.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-03-26 16:38:20 +0000
committerthomascube <thomas@roundcube.net>2010-03-26 16:38:20 +0000
commita61bbb24aafec5718ca9bc985e7c596c5821f018 (patch)
tree0aac5efbd70ab7fbdb42cb4d7a0302a3a51f3fac /program/include/rcube_addressbook.php
parentc75f8e9526d629c9b5aa7396885ae76d20c5c255 (diff)
Added basic contact groups feature
Diffstat (limited to 'program/include/rcube_addressbook.php')
-rw-r--r--program/include/rcube_addressbook.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/program/include/rcube_addressbook.php b/program/include/rcube_addressbook.php
index b691ee8d5..ff525bc11 100644
--- a/program/include/rcube_addressbook.php
+++ b/program/include/rcube_addressbook.php
@@ -29,6 +29,7 @@ abstract class rcube_addressbook
{
/** public properties */
var $primary_key;
+ var $groups = false;
var $readonly = true;
var $ready = false;
var $list_page = 1;
@@ -63,6 +64,13 @@ abstract class rcube_addressbook
abstract function list_records($cols=null, $subset=0);
/**
+ * List all active contact groups of this source
+ *
+ * @return array Indexed list of contact groups, each a hash array
+ */
+ function list_groups() { }
+
+ /**
* Search records
*
* @param array List of fields to search in
@@ -124,6 +132,12 @@ abstract class rcube_addressbook
}
/**
+ * Setter for the current group
+ * (empty, has to be re-implemented by extending class)
+ */
+ function set_group($gid) { }
+
+ /**
* Create a new contact record
*
* @param array Assoziative array with save data