summaryrefslogtreecommitdiffstats
path: root/lib/public/Search/Provider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Search/Provider.php')
-rw-r--r--lib/public/Search/Provider.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Search/Provider.php b/lib/public/Search/Provider.php
index 18594eefb8f..275a63c0056 100644
--- a/lib/public/Search/Provider.php
+++ b/lib/public/Search/Provider.php
@@ -30,11 +30,13 @@ namespace OCP\Search;
/**
* Provides a template for search functionality throughout ownCloud;
* @since 7.0.0
+ * @deprecated 20.0.0
*/
abstract class Provider {
/**
* @since 8.0.0
+ * @deprecated 20.0.0
*/
public const OPTION_APPS = 'apps';
@@ -42,6 +44,7 @@ abstract class Provider {
* List of options
* @var array
* @since 7.0.0
+ * @deprecated 20.0.0
*/
protected $options;
@@ -49,6 +52,7 @@ abstract class Provider {
* Constructor
* @param array $options as key => value
* @since 7.0.0 - default value for $options was added in 8.0.0
+ * @deprecated 20.0.0
*/
public function __construct($options = []) {
$this->options = $options;
@@ -59,6 +63,7 @@ abstract class Provider {
* @param string $key
* @return mixed
* @since 8.0.0
+ * @deprecated 20.0.0
*/
public function getOption($key) {
if (is_array($this->options) && isset($this->options[$key])) {
@@ -76,6 +81,7 @@ abstract class Provider {
* @param string[] $apps
* @return bool
* @since 8.0.0
+ * @deprecated 20.0.0
*/
public function providesResultsFor(array $apps = []) {
$forApps = $this->getOption(self::OPTION_APPS);
@@ -87,6 +93,7 @@ abstract class Provider {
* @param string $query
* @return array An array of OCP\Search\Result's
* @since 7.0.0
+ * @deprecated 20.0.0
*/
abstract public function search($query);
}