]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/mailer/debug/class_DebugMailer.php
Login area extended and misc things changed:
[shipsimu.git] / inc / classes / main / mailer / debug / class_DebugMailer.php
index 6437823bd87da7e14ac0344398db1060453c46df..62c592049898c26113d479a5e45351ec0b6591af 100644 (file)
@@ -1,6 +1,7 @@
 <?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
@@ -41,12 +42,16 @@ 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;
        }