diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-16 17:00:08 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-16 17:00:08 +0200 |
commit | 7644950b48b094bfe5675348aefb7cf5747d325b (patch) | |
tree | a1792e21239a86f471da99b454134a5d8533ef77 /lib/public/isearch.php | |
parent | 8653da6c16597959c7bd0f0b202747ff96204575 (diff) | |
download | nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip |
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the
method introduction right inside the code without searching
via git blame
* easier to write apps for multiple versions
Diffstat (limited to 'lib/public/isearch.php')
-rw-r--r-- | lib/public/isearch.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/isearch.php b/lib/public/isearch.php index fe25d5b49f7..bb7ada86e31 100644 --- a/lib/public/isearch.php +++ b/lib/public/isearch.php @@ -28,6 +28,7 @@ namespace OCP; /** * Small Interface for Search + * @since 7.0.0 */ interface ISearch { @@ -37,6 +38,7 @@ interface ISearch { * @param string[] $inApps optionally limit results to the given apps * @return array An array of OCP\Search\Result's * @deprecated use searchPaged() with page and size + * @since 7.0.0 - parameter $inApps was added in 8.0.0 */ public function search($query, array $inApps = array()); @@ -47,6 +49,7 @@ interface ISearch { * @param int $page pages start at page 1 * @param int $size * @return array An array of OCP\Search\Result's + * @since 8.0.0 */ public function searchPaged($query, array $inApps = array(), $page = 1, $size = 30); @@ -54,17 +57,20 @@ interface ISearch { * Register a new search provider to search with * @param string $class class name of a OCP\Search\Provider * @param array $options optional + * @since 7.0.0 */ public function registerProvider($class, array $options = array()); /** * Remove one existing search provider * @param string $provider class name of a OCP\Search\Provider + * @since 7.0.0 */ public function removeProvider($provider); /** * Remove all registered search providers + * @since 7.0.0 */ public function clearProviders(); |