diff options
author | Joas Schilling <coding@schilljs.com> | 2018-04-18 11:29:49 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-07-25 18:53:44 +0200 |
commit | 8c7969e7301cb88dc6a94565ef8903c70117e750 (patch) | |
tree | b6b8026ac451449f4137feb9115b26628d86ec62 /lib/public | |
parent | 80207d72fa5de7b88dd8fd180acc528a3d9fa8da (diff) | |
download | nextcloud-server-8c7969e7301cb88dc6a94565ef8903c70117e750.tar.gz nextcloud-server-8c7969e7301cb88dc6a94565ef8903c70117e750.zip |
Allow to search by comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Comments/ICommentsManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -139,6 +139,18 @@ interface ICommentsManager { ): 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 * @param \DateTime|null $notOlderThan optional, timestamp of the oldest comments |