From 25446f0e4878ea7b42d9c64e97f56d56e925e0e6 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Wed, 16 Apr 2014 17:12:02 +0200 Subject: [PATCH] Add getSearchProvider() to AbstractBackend. Refs #465 --- lib/backend/abstractbackend.php | 4 ++++ lib/backend/database.php | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/backend/abstractbackend.php b/lib/backend/abstractbackend.php index eb8737a7..be29463e 100644 --- a/lib/backend/abstractbackend.php +++ b/lib/backend/abstractbackend.php @@ -457,4 +457,8 @@ abstract class AbstractBackend { ? \OCP\Config::setUserValue($this->userid, 'contacts', $key, $data) : false; } + + public function getSearchProvider($addressbook) { + } + } diff --git a/lib/backend/database.php b/lib/backend/database.php index 2a0e9a04..f9a16606 100644 --- a/lib/backend/database.php +++ b/lib/backend/database.php @@ -1018,9 +1018,9 @@ class Database extends AbstractBackend { return self::$preparedQueries[$identifier]; } - - public function getSearchProvider($addressbook){ - return new \OCA\Contacts\AddressbookProvider($addressbook); - } + + public function getSearchProvider($addressbook) { + return new \OCA\Contacts\AddressbookProvider($addressbook); + } }