From 8c7969e7301cb88dc6a94565ef8903c70117e750 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 18 Apr 2018 11:29:49 +0200 Subject: Allow to search by comments Signed-off-by: Joas Schilling --- lib/public/Comments/ICommentsManager.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index b3ed176b3b5..2ea5ef29291 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -138,6 +138,18 @@ interface ICommentsManager { int $limit = 30 ): array; + /** + * Search for comments with a given content + * + * @param string $search content to search for + * @param string $objectType Limit the search by object type + * @param string $objectId Limit the search by object id + * @param string $verb Limit the verb of the comment + * @return IComment[] + * @since 14.0.0 + */ + public function search(string $search, string $objectType, string $objectId, string $verb): array; + /** * @param $objectType string the object type, e.g. 'files' * @param $objectId string the id of the object -- cgit v1.2.3