Added searchByTag in cache jail wrapper

This commit is contained in:
Vincent Petry 2014-12-12 11:48:42 +01:00
parent 15ecb28d50
commit 3878c3782f

View 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
*