1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Contacts: Add docstring

This commit is contained in:
Thomas Tanghus 2013-04-07 22:28:14 +02:00
parent 2e23ba5bb1
commit 221f1bbcdf

View File

@ -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)) {