aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Activity
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-12-01 11:34:56 +0100
committerJoas Schilling <coding@schilljs.com>2016-12-01 11:34:56 +0100
commit23a525a74b38b729eed2dad90d0f6bf41d95216c (patch)
tree1ce224477099c0528fda80ca930ec38885df67e9 /lib/public/Activity
parent4ca7f9c896508f14ea2e5d9bdce8c3d986ea05dd (diff)
downloadnextcloud-server-23a525a74b38b729eed2dad90d0f6bf41d95216c.tar.gz
nextcloud-server-23a525a74b38b729eed2dad90d0f6bf41d95216c.zip
Add language to the parse method for emails
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Activity')
-rw-r--r--lib/public/Activity/IProvider.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/public/Activity/IProvider.php b/lib/public/Activity/IProvider.php
index 5b78e26f4bc..83096c4efac 100644
--- a/lib/public/Activity/IProvider.php
+++ b/lib/public/Activity/IProvider.php
@@ -29,11 +29,14 @@ namespace OCP\Activity;
*/
interface IProvider {
/**
- * @param IEvent $event
- * @param IEvent|null $previousEvent
+ * @param string $language The language which should be used for translating, e.g. "en"
+ * @param IEvent $event The current event which should be parsed
+ * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
+ * To do so, simply use setChildEvent($previousEvent) after setting the
+ * combined subject on the current event.
* @return IEvent
- * @throws \InvalidArgumentException
+ * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
* @since 11.0.0
*/
- public function parse(IEvent $event, IEvent $previousEvent = null);
+ public function parse($language, IEvent $event, IEvent $previousEvent = null);
}