summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/carddav/addressbook.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-10 17:06:13 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-10 17:06:13 +0100
commitc919b4139599a854d60dc057c2f55ba4fa10694a (patch)
treece36542d7b89d5b31ae2eaf4d80428c34ac3dce7 /apps/dav/lib/carddav/addressbook.php
parent159a0eb597425d7082aff7cf857d4d042cf8ebd2 (diff)
downloadnextcloud-server-c919b4139599a854d60dc057c2f55ba4fa10694a.tar.gz
nextcloud-server-c919b4139599a854d60dc057c2f55ba4fa10694a.zip
Adding a custom webdav property which holds the list of contacts groups
Diffstat (limited to 'apps/dav/lib/carddav/addressbook.php')
-rw-r--r--apps/dav/lib/carddav/addressbook.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dav/lib/carddav/addressbook.php b/apps/dav/lib/carddav/addressbook.php
index ca3f5ba0ef6..be57a2d90a1 100644
--- a/apps/dav/lib/carddav/addressbook.php
+++ b/apps/dav/lib/carddav/addressbook.php
@@ -161,4 +161,11 @@ class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable {
}
parent::delete();
}
+
+ public function getContactsGroups() {
+ /** @var CardDavBackend $cardDavBackend */
+ $cardDavBackend = $this->carddavBackend;
+
+ return $cardDavBackend->collectCardProperties($this->getResourceId(), 'CATEGORIES');
+ }
}