diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-10 17:06:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-10 17:06:13 +0100 |
commit | c919b4139599a854d60dc057c2f55ba4fa10694a (patch) | |
tree | ce36542d7b89d5b31ae2eaf4d80428c34ac3dce7 /apps/dav/lib/carddav/addressbook.php | |
parent | 159a0eb597425d7082aff7cf857d4d042cf8ebd2 (diff) | |
download | nextcloud-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.php | 7 |
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'); + } } |