From 221f1bbcdf034c9210f1c5df2071b1feaff01c21 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sun, 7 Apr 2013 22:28:14 +0200 Subject: [PATCH] Contacts: Add docstring --- lib/carddav/backend.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/carddav/backend.php b/lib/carddav/backend.php index 2a023449..2f2cd843 100644 --- a/lib/carddav/backend.php +++ b/lib/carddav/backend.php @@ -238,6 +238,13 @@ class Backend extends \Sabre_CardDAV_Backend_Abstract { return $userid; } + /** + * Get the backend for an address book + * + * FIXME: Find a better way to get the right backend if possible. + * @param string $addressbookid + * @return \OCA\Contacts\Backend\AbstractBackend + */ public function getBackendForAddressBook($addressbookid) { foreach($this->backends as $backend) { if($backend->hasAddressBook($addressbookid)) {