From: Vincent Petry Date: Fri, 12 Dec 2014 10:48:42 +0000 (+0100) Subject: Added searchByTag in cache jail wrapper X-Git-Tag: v8.0.0alpha1~98^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3878c3782ff37dc56a4e463acea351a61ed7b4c2;p=nextcloud-server.git Added searchByTag in cache jail wrapper --- 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 @@ -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 *