aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/view.php')
-rw-r--r--lib/private/files/view.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 4b3d167f8e9..7090e03d40c 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1135,6 +1135,16 @@ class View {
}
/**
+ * search for files by tag
+ *
+ * @param string|int $tag name or tag id
+ * @return FileInfo[]
+ */
+ public function searchByTag($tag) {
+ return $this->searchCommon($tag, 'searchByTag');
+ }
+
+ /**
* @param string $query
* @param string $method
* @return FileInfo[]