summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-12 11:48:42 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-12 11:48:42 +0100
commit3878c3782ff37dc56a4e463acea351a61ed7b4c2 (patch)
tree27f05ef55f78420ede408c92e2715b67631b6316 /lib/private
parent15ecb28d50e5b8ce4100075caa52d96d4f00ae13 (diff)
downloadnextcloud-server-3878c3782ff37dc56a4e463acea351a61ed7b4c2.tar.gz
nextcloud-server-3878c3782ff37dc56a4e463acea351a61ed7b4c2.zip
Added searchByTag in cache jail wrapper
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/cache/wrapper/cachejail.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/files/cache/wrapper/cachejail.php b/lib/private/files/cache/wrapper/cachejail.php
index 7982293f5ed..f4ffc67d76a 100644
--- a/lib/private/files/cache/wrapper/cachejail.php
+++ b/lib/private/files/cache/wrapper/cachejail.php
@@ -198,6 +198,18 @@ class CacheJail extends CacheWrapper {
}
/**
+ * search for files by mimetype
+ *
+ * @param string|int $tag name or tag id
+ * @param string $userId owner of the tags
+ * @return array
+ */
+ public function searchByTag($tag, $userId) {
+ $results = $this->cache->searchByTag($tag, $userId);
+ return $this->formatSearchResults($results);
+ }
+
+ /**
* update the folder size and the size of all parent folders
*
* @param string|boolean $path