From 3878c3782ff37dc56a4e463acea351a61ed7b4c2 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 12 Dec 2014 11:48:42 +0100 Subject: [PATCH] Added searchByTag in cache jail wrapper --- lib/private/files/cache/wrapper/cachejail.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/private/files/cache/wrapper/cachejail.php b/lib/private/files/cache/wrapper/cachejail.php index 7982293f5e..f4ffc67d76 100644 --- a/lib/private/files/cache/wrapper/cachejail.php +++ b/lib/private/files/cache/wrapper/cachejail.php @@ -197,6 +197,18 @@ class CacheJail extends CacheWrapper { return $this->formatSearchResults($results); } + /** + * 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 *