aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-08 00:15:42 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 18:19:09 +0200
commit221562d45d9ed816dfe28eafe5e57f3812821a88 (patch)
tree94acc45fe897800a01faaac562c3d947c1f8a129 /lib/public
parent30028bb9ac95d3c6d2103b8fc1efd7a76df26fb3 (diff)
downloadnextcloud-server-221562d45d9ed816dfe28eafe5e57f3812821a88.tar.gz
nextcloud-server-221562d45d9ed816dfe28eafe5e57f3812821a88.zip
feat: add searchBySystemTag as PHP API
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Folder.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index 912c5472fac..eb81a2098ec 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -142,6 +142,16 @@ interface Folder extends Node {
public function searchByTag($tag, $userId);
/**
+ * search for files by system tag
+ *
+ * @param string|int $tag tag name
+ * @param string $userId user id to ensure access on returned nodes
+ * @return \OCP\Files\Node[]
+ * @since 28.0.0
+ */
+ public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0);
+
+ /**
* get a file or folder inside the folder by it's internal id
*
* This method could return multiple entries. For example once the file/folder