diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-22 10:57:40 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-24 14:20:26 +0200 |
commit | 27b8637e3e2676e81df74891043c39530bdc1cda (patch) | |
tree | 94087564729209c20b07832a956431763d801ebf /lib/private/Search/Result/File.php | |
parent | f8e08a74bac4b065edcade762e2ca3632ff76797 (diff) | |
download | nextcloud-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/Result/File.php')
-rw-r--r-- | lib/private/Search/Result/File.php | 10 |
1 files changed, 10 insertions, 0 deletions
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)) { |