From ede75108548febed0e9fb0b56595529927866721 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 30 Oct 2020 12:10:59 +0100 Subject: Add a function to get the unread count for multiple objects in one go Signed-off-by: Joas Schilling --- lib/public/Comments/ICommentsManager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index b179b8a7464..c34358ddf93 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -180,6 +180,17 @@ interface ICommentsManager { */ public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = ''); + /** + * @param string $objectType the object type, e.g. 'files' + * @param string[] $objectIds the id of the object + * @param IUser $user + * @param string $verb Limit the verb of the comment - Added in 14.0.0 + * @return array Map with object id => # of unread comments + * @psalm-return array + * @since 21.0.0 + */ + public function getNumberOfUnreadCommentsForObjects(string $objectType, array $objectIds, IUser $user, $verb = ''): array; + /** * @param string $objectType * @param string $objectId -- cgit v1.2.3