aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Search
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-22 10:57:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-24 14:20:26 +0200
commit27b8637e3e2676e81df74891043c39530bdc1cda (patch)
tree94087564729209c20b07832a956431763d801ebf /lib/private/Search
parentf8e08a74bac4b065edcade762e2ca3632ff76797 (diff)
downloadnextcloud-server-27b8637e3e2676e81df74891043c39530bdc1cda.tar.gz
nextcloud-server-27b8637e3e2676e81df74891043c39530bdc1cda.zip
Deprecate \OCP\ISearch
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Search')
-rw-r--r--lib/private/Search/Provider/File.php2
-rw-r--r--lib/private/Search/Result/Audio.php4
-rw-r--r--lib/private/Search/Result/File.php10
-rw-r--r--lib/private/Search/Result/Folder.php2
-rw-r--r--lib/private/Search/Result/Image.php4
5 files changed, 20 insertions, 2 deletions
diff --git a/lib/private/Search/Provider/File.php b/lib/private/Search/Provider/File.php
index 02521460d8c..9a41a46bd35 100644
--- a/lib/private/Search/Provider/File.php
+++ b/lib/private/Search/Provider/File.php
@@ -32,6 +32,7 @@ use OC\Files\Filesystem;
/**
* Provide search results from the 'files' app
+ * @deprecated 20.0.0
*/
class File extends \OCP\Search\Provider {
@@ -39,6 +40,7 @@ class File extends \OCP\Search\Provider {
* Search for files and folders matching the given query
* @param string $query
* @return \OCP\Search\Result
+ * @deprecated 20.0.0
*/
public function search($query) {
$files = Filesystem::search($query);
diff --git a/lib/private/Search/Result/Audio.php b/lib/private/Search/Result/Audio.php
index ef0d3bf9d20..e3917b7e4b3 100644
--- a/lib/private/Search/Result/Audio.php
+++ b/lib/private/Search/Result/Audio.php
@@ -27,15 +27,17 @@ namespace OC\Search\Result;
/**
* A found audio file
+ * @deprecated 20.0.0
*/
class Audio extends File {
/**
* Type name; translated in templates
* @var string
+ * @deprecated 20.0.0
*/
public $type = 'audio';
-
+
/**
* @TODO add ID3 information
*/
diff --git a/lib/private/Search/Result/File.php b/lib/private/Search/Result/File.php
index cfff54e0692..f93b033c07f 100644
--- a/lib/private/Search/Result/File.php
+++ b/lib/private/Search/Result/File.php
@@ -31,36 +31,42 @@ use OCP\Files\Folder;
/**
* A found file
+ * @deprecated 20.0.0
*/
class File extends \OCP\Search\Result {
/**
* Type name; translated in templates
* @var string
+ * @deprecated 20.0.0
*/
public $type = 'file';
/**
* Path to file
* @var string
+ * @deprecated 20.0.0
*/
public $path;
/**
* Size, in bytes
* @var int
+ * @deprecated 20.0.0
*/
public $size;
/**
* Date modified, in human readable form
* @var string
+ * @deprecated 20.0.0
*/
public $modified;
/**
* File mime type
* @var string
+ * @deprecated 20.0.0
*/
public $mime_type;
@@ -68,12 +74,14 @@ class File extends \OCP\Search\Result {
* File permissions:
*
* @var string
+ * @deprecated 20.0.0
*/
public $permissions;
/**
* Create a new file search result
* @param FileInfo $data file data given by provider
+ * @deprecated 20.0.0
*/
public function __construct(FileInfo $data) {
$path = $this->getRelativePath($data->getPath());
@@ -97,6 +105,7 @@ class File extends \OCP\Search\Result {
/**
* @var Folder $userFolderCache
+ * @deprecated 20.0.0
*/
protected static $userFolderCache = null;
@@ -105,6 +114,7 @@ class File extends \OCP\Search\Result {
* eg /user/files/foo.txt -> /foo.txt
* @param string $path
* @return string relative path
+ * @deprecated 20.0.0
*/
protected function getRelativePath($path) {
if (!isset(self::$userFolderCache)) {
diff --git a/lib/private/Search/Result/Folder.php b/lib/private/Search/Result/Folder.php
index 8110d61bead..1268b1379b2 100644
--- a/lib/private/Search/Result/Folder.php
+++ b/lib/private/Search/Result/Folder.php
@@ -27,12 +27,14 @@ namespace OC\Search\Result;
/**
* A found folder
+ * @deprecated 20.0.0
*/
class Folder extends File {
/**
* Type name; translated in templates
* @var string
+ * @deprecated 20.0.0
*/
public $type = 'folder';
}
diff --git a/lib/private/Search/Result/Image.php b/lib/private/Search/Result/Image.php
index e569c91ea02..5a46138f594 100644
--- a/lib/private/Search/Result/Image.php
+++ b/lib/private/Search/Result/Image.php
@@ -27,15 +27,17 @@ namespace OC\Search\Result;
/**
* A found image file
+ * @deprecated 20.0.0
*/
class Image extends File {
/**
* Type name; translated in templates
* @var string
+ * @deprecated 20.0.0
*/
public $type = 'image';
-
+
/**
* @TODO add EXIF information
*/