]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added searchByTag in cache jail wrapper
authorVincent Petry <pvince81@owncloud.com>
Fri, 12 Dec 2014 10:48:42 +0000 (11:48 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 12 Dec 2014 10:48:42 +0000 (11:48 +0100)
lib/private/files/cache/wrapper/cachejail.php

index 7982293f5ed40c8270cf26bdc3c38df2fdab3289..f4ffc67d76a4196a0c0e34221a9d62a34acdf39a 100644 (file)
@@ -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
         *