From 25dde7e93bc648ec8cd14b8f2711d50f77d8d1bf Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 4 Dec 2014 14:01:15 +0100 Subject: Added searchByTags to view, storage and cache --- lib/private/files/filesystem.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/private/files/filesystem.php') diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index 90643839e22..3d55564f0c6 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -686,6 +686,14 @@ class Filesystem { return self::$defaultInstance->searchByMime($query); } + /** + * @param string|int $tag name or tag id + * @return FileInfo[] array or file info + */ + static public function searchByTag($tag) { + return self::$defaultInstance->searchByTag($tag); + } + /** * check if a file or folder has been updated since $time * -- cgit v1.2.3