1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Implement getSearchProvidder

This commit is contained in:
LEDfan 2014-04-18 12:47:44 +02:00
parent 4e75a00bb5
commit 11eef60a55
2 changed files with 6 additions and 1 deletions

View File

@ -64,7 +64,8 @@ if (\OCP\User::isLoggedIn()) {
$addressBooks = $app->getAddressBooksForUser();
foreach ($addressBooks as $addressBook) {
if ($addressBook->isActive()) {
\OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook));
// $addressBook is instance of \OCA\Contacts\Addressbook
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider($addressBook));
}
}
}

View File

@ -482,4 +482,8 @@ class Addressbook extends AbstractPIMCollection {
return $events;
}
public function getSearchProvider($addressbook){
return $this->backend->getSearchProvider($addressbook);
}
}