From 09747b296ac48789bf636d230afd5e4499166838 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 24 Aug 2017 17:54:22 +0200 Subject: Add meta information to emails for better customisation Signed-off-by: Joas Schilling --- lib/private/Mail/EMailTemplate.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/private/Mail/EMailTemplate.php') diff --git a/lib/private/Mail/EMailTemplate.php b/lib/private/Mail/EMailTemplate.php index a55e6f9e5b5..32cb01f30b3 100644 --- a/lib/private/Mail/EMailTemplate.php +++ b/lib/private/Mail/EMailTemplate.php @@ -45,6 +45,10 @@ class EMailTemplate implements IEMailTemplate { protected $urlGenerator; /** @var IL10N */ protected $l10n; + /** @var string */ + protected $emailId; + /** @var array */ + protected $data; /** @var string */ protected $htmlBody = ''; @@ -348,6 +352,18 @@ EOF; $this->htmlBody .= $this->head; } + /** + * Set meta data of an email + * + * @param string $emailId + * @param array $data + * @since 12.0.3 + */ + public function setMetaData($emailId, array $data = []) { + $this->emailId = $emailId; + $this->data = $data; + } + /** * Adds a header to the email */ -- cgit v1.2.3