<?php
/**
- *
+ * A mailer class for debugging purposes only. This class will print the
+ * prepared mail out and will not send it to the recipient.
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class DebugMailer extends BaseMailer implements DeliverableMail {
/**
/**
* Creates an instance of this mailer class
*
+ * @param $templateInstance A template instance
* @return $mailerInstance An instance of this mailer class
*/
- public final static function createDebugMailer () {
+ public final static function createDebugMailer (CompileableTemplate $templateInstance) {
// Get a new instance
$mailerInstance = new DebugMailer();
+ // Set template instance
+ $mailerInstance->setTemplateInstance($templateInstance);
+
// Return the instance
return $mailerInstance;
}
+
+ /**
+ * Deliver email to the recipient(s)
+ *
+ * @return void
+ */
+ public function deliverEmail () {
+ $this->partialStub();
+ }
+
+ /**
+ * Send notification to the admin
+ *
+ * @return void
+ */
+ public function sendAdminNotification () {
+ $this->partialStub();
+ }
}
// [EOF]