diff options
author | Joas Schilling <coding@schilljs.com> | 2017-08-24 17:54:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-24 17:54:22 +0200 |
commit | 09747b296ac48789bf636d230afd5e4499166838 (patch) | |
tree | a36750d64b7bf4ed0b95175a1e99267bffe18007 /lib/private/Mail/EMailTemplate.php | |
parent | a7f2dc6dd660179682f7d03ac8e07649b59cdd6f (diff) | |
download | nextcloud-server-09747b296ac48789bf636d230afd5e4499166838.tar.gz nextcloud-server-09747b296ac48789bf636d230afd5e4499166838.zip |
Add meta information to emails for better customisation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Mail/EMailTemplate.php')
-rw-r--r-- | lib/private/Mail/EMailTemplate.php | 16 |
1 files changed, 16 insertions, 0 deletions
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 = ''; @@ -349,6 +353,18 @@ EOF; } /** + * 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 */ public function addHeader() { |