diff --git a/lib/legacy/search.php b/lib/legacy/search.php deleted file mode 100644 index 61c7f167208..00000000000 --- a/lib/legacy/search.php +++ /dev/null @@ -1,68 +0,0 @@ -. - * - */ - - -/** - * provides an interface to all search providers - * @deprecated see lib/search.php - */ -class OC_Search { - static private $providers=array(); - static private $registeredProviders=array(); - - /** - * remove all registered search providers - * @deprecated see lib/search.php - */ - public static function clearProviders() { - return \OC\Search::clearProviders(); - } - - /** - * register a new search provider to be used - * @param string $provider class name of a OC_Search_Provider - * @deprecated see lib/search.php - */ - public static function registerProvider($class, $options=array()) { - return \OC\Search::registerProvider($class, $options); - } - - /** - * search all provider for $query - * @param string query - * @return array An array of OC_Search_Result's - * @deprecated see lib/search.php - */ - public static function search($query) { - return \OC\Search::search($query); - } - - /** - * remove an existing search provider - * @param string $provider class name of a OC_Search_Provider - * @deprecated see lib/search.php - */ - public static function removeProvider($provider) { - return \OC\Search::removeProvider($provider); - } - -} diff --git a/lib/private/legacy/search.php b/lib/private/legacy/search.php new file mode 100644 index 00000000000..e6396020225 --- /dev/null +++ b/lib/private/legacy/search.php @@ -0,0 +1,29 @@ +. + * + */ + +/** + * provides an interface to all search providers + * @deprecated see lib/search.php + */ +class OC_Search extends \OC\Search{ + +} diff --git a/lib/legacy/search/provider.php b/lib/private/legacy/search/provider.php similarity index 100% rename from lib/legacy/search/provider.php rename to lib/private/legacy/search/provider.php diff --git a/lib/legacy/search/provider/file.php b/lib/private/legacy/search/provider/file.php similarity index 100% rename from lib/legacy/search/provider/file.php rename to lib/private/legacy/search/provider/file.php diff --git a/lib/legacy/search/result.php b/lib/private/legacy/search/result.php similarity index 100% rename from lib/legacy/search/result.php rename to lib/private/legacy/search/result.php