summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-05 18:09:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-05 18:09:19 +0100
commit6ccd5ecb0704a8c34ce3704f5105f34beea30c9f (patch)
treeca497c2ee7a175759657f7c9583bd686d932a1eb
parentf8dfc6201bc211b94ea4d1aec0e6bc333e1d5a4d (diff)
parent282c1cb24f3bfa08421b89d6d88bbd5e18b684c7 (diff)
downloadnextcloud-server-6ccd5ecb0704a8c34ce3704f5105f34beea30c9f.tar.gz
nextcloud-server-6ccd5ecb0704a8c34ce3704f5105f34beea30c9f.zip
Merge pull request #22169 from owncloud/cache-interface-fixes
Cache interface cleanup/phpdoc
-rw-r--r--lib/public/files/cache/icache.php9
-rw-r--r--lib/public/files/storage/istorage.php9
2 files changed, 8 insertions, 10 deletions
diff --git a/lib/public/files/cache/icache.php b/lib/public/files/cache/icache.php
index 4ffb298a9e2..18641b29f9c 100644
--- a/lib/public/files/cache/icache.php
+++ b/lib/public/files/cache/icache.php
@@ -59,6 +59,8 @@ interface ICache {
/**
* get the metadata of all files stored in $folder
*
+ * Only returns files one level deep, no recursion
+ *
* @param string $folder
* @return ICacheEntry[]
* @since 9.0.0
@@ -68,6 +70,8 @@ interface ICache {
/**
* get the metadata of all files stored in $folder
*
+ * Only returns files one level deep, no recursion
+ *
* @param int $fileId the file id of the folder
* @return ICacheEntry[]
* @since 9.0.0
@@ -187,11 +191,12 @@ interface ICache {
public function getStatus($file);
/**
- * search for files matching $pattern
+ * search for files matching $pattern, files are matched if their filename matches the search pattern
*
* @param string $pattern the search pattern using SQL search syntax (e.g. '%searchstring%')
* @return ICacheEntry[] an array of cache entries where the name matches the search pattern
* @since 9.0.0
+ * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
*/
public function search($pattern);
@@ -202,6 +207,7 @@ interface ICache {
* where it will search for all mimetypes in the group ('image/*')
* @return ICacheEntry[] an array of cache entries where the mimetype matches the search
* @since 9.0.0
+ * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
*/
public function searchByMime($mimetype);
@@ -214,6 +220,7 @@ interface ICache {
* @param string $userId owner of the tags
* @return ICacheEntry[] file data
* @since 9.0.0
+ * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
*/
public function searchByTag($tag, $userId);
diff --git a/lib/public/files/storage/istorage.php b/lib/public/files/storage/istorage.php
index 4bc5e3536dc..5b10c966a1f 100644
--- a/lib/public/files/storage/istorage.php
+++ b/lib/public/files/storage/istorage.php
@@ -304,15 +304,6 @@ interface IStorage {
public function free_space($path);
/**
- * search for occurrences of $query in file names
- *
- * @param string $query
- * @return array|false
- * @since 9.0.0
- */
- public function search($query);
-
- /**
* see http://php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned
*