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:
Ingo Schommer 2008-12-10 21:49:25 +00:00 committed by Sam Minnee
parent b26bd547ba
commit 9cf7fb7736

View File

@ -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(