diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/folder.php | 9 | ||||
-rw-r--r-- | lib/public/itagmanager.php | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lib/public/files/folder.php b/lib/public/files/folder.php index 7fec1c529a5..9797fbc46ed 100644 --- a/lib/public/files/folder.php +++ b/lib/public/files/folder.php @@ -117,6 +117,15 @@ interface Folder extends Node { public function searchByMime($mimetype); /** + * search for files by tag + * + * @param string|int $tag tag name or tag id + * @param string $userId owner of the tags + * @return \OCP\Files\Node[] + */ + public function searchByTag($tag, $userId); + + /** * get a file or folder inside the folder by it's internal id * * @param int $id diff --git a/lib/public/itagmanager.php b/lib/public/itagmanager.php index 54daa5cc1cb..ac80eebc72d 100644 --- a/lib/public/itagmanager.php +++ b/lib/public/itagmanager.php @@ -43,14 +43,15 @@ namespace OCP; interface ITagManager { /** - * Create a new \OCP\ITags instance and load tags from db. + * Create a new \OCP\ITags instance and load tags from db for the current user. * * @see \OCP\ITags * @param string $type The type identifier e.g. 'contact' or 'event'. * @param array $defaultTags An array of default tags to be used if none are stored. * @param boolean $includeShared Whether to include tags for items shared with this user by others. + * @param string $userId user for which to retrieve the tags, defaults to the currently + * logged in user * @return \OCP\ITags */ - public function load($type, $defaultTags=array(), $includeShared=false); - + public function load($type, $defaultTags = array(), $includeShared = false, $userId = null); } |