diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-12 21:23:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 21:23:11 +0200 |
commit | b3b24172e48d11e1247db84bfec5b6650883a7a4 (patch) | |
tree | f03584a5788105ba9149a84a554fa9b6bbd7245f /lib/public | |
parent | 72ff33da1d5d1d337e5479304c43b8951f0e0252 (diff) | |
parent | ae4c2893a218461099d01071faf64ede78f9bc40 (diff) | |
download | nextcloud-server-b3b24172e48d11e1247db84bfec5b6650883a7a4.tar.gz nextcloud-server-b3b24172e48d11e1247db84bfec5b6650883a7a4.zip |
Merge pull request #4307 from nextcloud/sharing-emails
New emails for sharebymail
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Mail/IEMailTemplate.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php index a1922e86151..4e308509c42 100644 --- a/lib/public/Mail/IEMailTemplate.php +++ b/lib/public/Mail/IEMailTemplate.php @@ -62,7 +62,8 @@ interface IEMailTemplate { * Adds a heading to the email * * @param string $title - * @param string $plainTitle Title that is used in the plain text email - if empty the $title is used + * @param string $plainTitle|bool Title that is used in the plain text email + * if empty the $title is used, if false none will be used * * @since 12.0.0 */ @@ -72,7 +73,8 @@ interface IEMailTemplate { * Adds a paragraph to the body of the email * * @param string $text - * @param string $plainText Text that is used in the plain text email - if empty the $text is used + * @param string|bool $plainText Text that is used in the plain text email + * if empty the $text is used, if false none will be used * * @since 12.0.0 */ @@ -93,9 +95,19 @@ interface IEMailTemplate { public function addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft = '', $plainTextRight = ''); /** + * Adds a button to the body of the email + * + * @param string $text Text of button + * @param string $url URL of button + * + * @since 12.0.0 + */ + public function addBodyButton($text, $url); + + /** * Adds a logo and a text to the footer. <br> in the text will be replaced by new lines in the plain text email * - * @param string $text + * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically generated email" will be used * * @since 12.0.0 */ |