Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add searchBySystemTag as PHP API
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jun 21, 2023
commit 221562d45d9ed816dfe28eafe5e57f3812821a88
4 changes: 4 additions & 0 deletions lib/private/Files/Node/LazyFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@ public function searchByTag($tag, $userId) {
return $this->__call(__FUNCTION__, func_get_args());
}

public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0) {
return $this->__call(__FUNCTION__, func_get_args());
}

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions lib/public/Files/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ public function searchByMime($mimetype);
*/
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
*
Expand Down