mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Merge pull request #470 from owncloud/add-localusers-app
Implement getSearchProvider
This commit is contained in:
commit
7c37422c93
@ -64,7 +64,7 @@ if (\OCP\User::isLoggedIn()) {
|
||||
$addressBooks = $app->getAddressBooksForUser();
|
||||
foreach ($addressBooks as $addressBook) {
|
||||
if ($addressBook->isActive()) {
|
||||
\OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook));
|
||||
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -482,4 +482,12 @@ class Addressbook extends AbstractPIMCollection {
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the searchProvider for a specific backend.
|
||||
* @param \OCA\Contacts\Addressbook $addressbook
|
||||
*/
|
||||
public function getSearchProvider(){
|
||||
return $this->backend->getSearchProvider($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user