Added searchByTag in cache jail wrapper
This commit is contained in:
parent
15ecb28d50
commit
3878c3782f
1 changed files with 12 additions and 0 deletions
12
lib/private/files/cache/wrapper/cachejail.php
vendored
12
lib/private/files/cache/wrapper/cachejail.php
vendored
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue