diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-12-17 18:49:39 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-02 10:28:41 +0100 |
commit | 606f802b7be0cb6f2f6d99c547e432bb8cd27994 (patch) | |
tree | c6e022168c4f1dc761e76ab8be78ba123c19f5f9 /lib/public/search/pagedprovider.php | |
parent | 0e9b05b7012844e348d36b5b35e1c50487a3bbc4 (diff) | |
download | nextcloud-server-606f802b7be0cb6f2f6d99c547e432bb8cd27994.tar.gz nextcloud-server-606f802b7be0cb6f2f6d99c547e432bb8cd27994.zip |
move search results below filelist, show hint when results are off screen, use js plugin mechanism
Diffstat (limited to 'lib/public/search/pagedprovider.php')
-rw-r--r-- | lib/public/search/pagedprovider.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/public/search/pagedprovider.php b/lib/public/search/pagedprovider.php index 97da1dd2c85..10c36cfc483 100644 --- a/lib/public/search/pagedprovider.php +++ b/lib/public/search/pagedprovider.php @@ -44,15 +44,16 @@ abstract class PagedProvider extends Provider { * @return array An array of OCP\Search\Result's */ public function search($query) { - $this->searchPaged($query, 0, 0); + // old apps might assume they get all results, so we set size 0 + $this->searchPaged($query, 1, 0); } /** * Search for $query * @param string $query - * @param int $limit, 0 = unlimited - * @param int $offset + * @param int $page pages start at page 1 + * @param int $size, 0 = all * @return array An array of OCP\Search\Result's */ - abstract public function searchPaged($query, $limit, $offset); + abstract public function searchPaged($query, $page, $size); } |