diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-12-09 13:27:38 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-12-09 13:27:38 +0100 |
commit | f53f25eafe2e7cad28eabccd7ca5acebab488170 (patch) | |
tree | 0edc65f4e4fb156aefb6807e559b1e2d00b91e93 /lib/public | |
parent | 1a16238d5d2a9579e02687e7e76acd1737039de8 (diff) | |
parent | cae600722ed04e69c376aa0a1ef1955c93d18ddf (diff) | |
download | nextcloud-server-f53f25eafe2e7cad28eabccd7ca5acebab488170.tar.gz nextcloud-server-f53f25eafe2e7cad28eabccd7ca5acebab488170.zip |
Merge pull request #12409 from owncloud/tags-getTagsForObjectIds
Add getTagsForObjects in ITags
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/itags.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/public/itags.php b/lib/public/itags.php index 4514746bbe8..238b12c6424 100644 --- a/lib/public/itags.php +++ b/lib/public/itags.php @@ -76,7 +76,23 @@ interface ITags { public function getTags(); /** - * Get the a list if items tagged with $tag. + * Get a list of tags for the given item ids. + * + * This returns an array with object id / tag names: + * [ + * 1 => array('First tag', 'Second tag'), + * 2 => array('Second tag'), + * 3 => array('Second tag', 'Third tag'), + * ] + * + * @param array $objIds item ids + * @return array|boolean with object id as key and an array + * of tag names as value or false if an error occurred + */ + public function getTagsForObjects(array $objIds); + + /** + * Get a list of items tagged with $tag. * * Throws an exception if the tag could not be found. * |