summaryrefslogtreecommitdiffstats
path: root/lib/public/isearch.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-02 17:31:04 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-10 15:51:59 +0100
commit1d490b559ce279f5c9f44b727fe9d71d3718a24b (patch)
tree5520065370f6874c80eb8a5be38e2b284d4e292f /lib/public/isearch.php
parente9029f94cb6eb9b37623ea1a2faf8aac11675900 (diff)
downloadnextcloud-server-1d490b559ce279f5c9f44b727fe9d71d3718a24b.tar.gz
nextcloud-server-1d490b559ce279f5c9f44b727fe9d71d3718a24b.zip
introduce inApps[] filter for search via ajax query, make file results show up in files app only
use more flexible return type check array with !empty instead of count
Diffstat (limited to 'lib/public/isearch.php')
-rw-r--r--lib/public/isearch.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/isearch.php b/lib/public/isearch.php
index 3b83dbf35e8..229376ed3ae 100644
--- a/lib/public/isearch.php
+++ b/lib/public/isearch.php
@@ -32,16 +32,17 @@ interface ISearch {
/**
* Search all providers for $query
* @param string $query
+ * @param string[] $inApps optionally limit results to the given apps
* @return array An array of OCP\Search\Result's
*/
- public function search($query);
+ public function search($query, array $inApps = array());
/**
* Register a new search provider to search with
* @param string $class class name of a OCP\Search\Provider
* @param array $options optional
*/
- public function registerProvider($class, $options = array());
+ public function registerProvider($class, array $options = array());
/**
* Remove one existing search provider