From 221562d45d9ed816dfe28eafe5e57f3812821a88 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 8 Jun 2023 00:15:42 +0200 Subject: feat: add searchBySystemTag as PHP API Signed-off-by: Arthur Schiwon --- lib/public/Files/Folder.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/public/Files') 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 @@ -141,6 +141,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 * -- cgit v1.2.3