mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Added Email->setTemplate() and Email->getTemplate() (as the Email_Template class is deprecated)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@68193 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b26bd547ba
commit
9cf7fb7736
@ -262,6 +262,22 @@ class Email extends ViewableData {
|
||||
$this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set template name (without *.ss extension).
|
||||
*
|
||||
* @param string $template
|
||||
*/
|
||||
public function setTemplate($template) {
|
||||
$this->ss_template = $template;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTemplate() {
|
||||
return $this->ss_template;
|
||||
}
|
||||
|
||||
protected function templateData() {
|
||||
if($this->template_data) {
|
||||
return $this->template_data->customise(array(
|
||||
|
Loading…
Reference in New Issue
Block a user