*/
function loadCodeTemplate ($template);
+ /**
+ * Load a specified email template into the engine for later compilation
+ * with other code/web/email templates.
+ *
+ * @param $template The email template we shall load which is
+ * located in "html" by default
+ * @return void
+ */
+ function loadEmailTemplate ($template);
+
/**
* Compile all variables by inserting their respective values
*
$templatePrefix = $this->getConfigInstance()->getConfigEntry('email_tpl_' . $templateName);
// Load this email template
- // @TODO This needs testing/fixes because the deprecated method
- // loadEmailTemplate() has been removed from interface CompileableTemplate.
- $this->getTemplateInstance()->loadCodeTemplate($templatePrefix . '_' . $templateName);
+ $this->getTemplateInstance()->loadEmailTemplate($templatePrefix . '_' . $templateName);
}
/**
$this->loadTemplate($template);
}
+ /**
+ * Load a specified email template into the engine
+ *
+ * @param $template The email template we shall load which is
+ * located in 'emails' by default
+ * @return void
+ */
+ public function loadEmailTemplate ($template) {
+ // Set template type
+ $this->setTemplateType($this->getConfigInstance()->getConfigEntry('email_template_type'));
+
+ // Load the special template
+ $this->loadTemplate($template);
+ }
+
/**
* Compiles configuration place-holders in all variables. This 'walks'
* through the variable group 'general'. It interprets all values from that