From 22112bf71d7e43f57b6987ed35200a99472ea4d6 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Thu, 17 Jan 2019 11:13:45 +0100 Subject: Allow access to addressbook unique uri MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Co-Authored-By: Joas Schilling --- apps/dav/lib/CardDAV/AddressBookImpl.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps') diff --git a/apps/dav/lib/CardDAV/AddressBookImpl.php b/apps/dav/lib/CardDAV/AddressBookImpl.php index 1aedd5d5643..ae727b8544f 100644 --- a/apps/dav/lib/CardDAV/AddressBookImpl.php +++ b/apps/dav/lib/CardDAV/AddressBookImpl.php @@ -75,6 +75,15 @@ class AddressBookImpl implements IAddressBook { return $this->addressBookInfo['id']; } + /** + * @return string defining the unique uri + * @since 16.0.0 + * @return string + */ + public function getUri(): string { + return $this->addressBookInfo['uri']; + } + /** * In comparison to getKey() this function returns a human readable (maybe translated) name * -- cgit v1.2.3