/**
* A general mailer class for all other mailers
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.shipsimu.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
$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);
}
/**
$templateName = $this->getTemplateName();
// Is the list initialized?
- $this->pushValueToGenericArrayElement('recipients', $templateName, 'recipients', $userInstance);
+ $this->pushValueToGenericArrayKey('recipients', $templateName, 'recipients', $userInstance);
}
/**
* @return void
*/
public final function setSubjectLine ($subjectLine) {
- ` $this->setGenericArrayElement('recipients', $this->getTemplateName(), 'generic', 'subject', $subjectLine);
+ $this->setGenericArrayElement('recipients', $this->getTemplateName(), 'generic', 'subject', $subjectLine);
}
/**
$templateName = $this->getTemplateName();
// Does the subject line exist?
- if ((!empty($templateName)) && ($this->isGenericArrayElementSet('recipients', $templateName, 'generic', 'subject']))) {
+ if ((!empty($templateName)) && ($this->isGenericArrayElementSet('recipients', $templateName, 'generic', 'subject'))) {
// Then use it
$subjectLine = $this->getGenericArrayElement('recipients', $templateName, 'generic', 'subject');
} // END - if