aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/QuerySearchHelper.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-04 11:57:07 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-09 23:51:51 +0200
commit2489a2d63a7b261e3362acd69af809fb242ad87c (patch)
treea0d273db16f563f8bd79ec5dcc0784aad28ec063 /lib/private/Files/Cache/QuerySearchHelper.php
parent6bff6a56672f08ebe1255bfad73abebd91b25428 (diff)
downloadnextcloud-server-2489a2d63a7b261e3362acd69af809fb242ad87c.tar.gz
nextcloud-server-2489a2d63a7b261e3362acd69af809fb242ad87c.zip
feat: specify media type via url path: systemtags-current/$mediaType
- only the media part of the mime type can be search, but not the full mime type. It can be added, should it become necessary. - thus fixes previously hardcoded selector for image/ types - also fixes a return type hint - adds a return type hint Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Cache/QuerySearchHelper.php')
-rw-r--r--lib/private/Files/Cache/QuerySearchHelper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php
index c2eed5688b5..af198e9c832 100644
--- a/lib/private/Files/Cache/QuerySearchHelper.php
+++ b/lib/private/Files/Cache/QuerySearchHelper.php
@@ -97,6 +97,10 @@ class QuerySearchHelper {
}
}
+
+ /**
+ * @return array<array-key, array{id: int, name: string, visibility: int, editable: int, ref_file_id: int, number_files: int}>
+ */
public function findUsedTagsInCaches(ISearchQuery $searchQuery, array $caches): array {
$query = $this->getQueryBuilder();
$query->selectTagUsage();