X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fmailer%2Fdebug%2Fclass_DebugMailer.php;h=a3e1fa13bcf497a01fb91a1c6eebafe4101b297f;hp=4a6651c2fcda26b2703d6ab08c386f0d458e0493;hb=9e1c690519dc4666fbb7d4a66b950d56770b25e0;hpb=84e2207412d3c6ea9f940a83b2cdd4503509808a diff --git a/inc/classes/main/mailer/debug/class_DebugMailer.php b/inc/classes/main/mailer/debug/class_DebugMailer.php index 4a6651c2..a3e1fa13 100644 --- a/inc/classes/main/mailer/debug/class_DebugMailer.php +++ b/inc/classes/main/mailer/debug/class_DebugMailer.php @@ -3,11 +3,11 @@ * 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 + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 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 @@ -36,12 +36,12 @@ class DebugMailer extends BaseMailer implements DeliverableMail { /** * Creates an instance of this mailer class * - * @param $templateInstance A template instance - * @param $appInstance An application helper class - * @param $templateName Name of email template to set - * @return $mailerInstance An instance of this mailer class + * @param $templateInstance A template instance + * @param $applicationInstance An application helper class + * @param $templateName Name of email template to set + * @return $mailerInstance An instance of this mailer class */ - public final static function createDebugMailer (CompileableTemplate $templateInstance, ManageableApplication $appInstance, $templateName) { + public static final function createDebugMailer (CompileableTemplate $templateInstance, ManageableApplication $applicationInstance, $templateName) { // Get a new instance $mailerInstance = new DebugMailer(); @@ -49,10 +49,10 @@ class DebugMailer extends BaseMailer implements DeliverableMail { $mailerInstance->setTemplateInstance($templateInstance); // Set application instance - $mailerInstance->setApplicationInstance($appInstance); + $mailerInstance->setApplicationInstance($applicationInstance); // Set template name - $mailerInstance->setTemplateName('resend_link'); + $mailerInstance->setTemplateName($templateName); // Return the instance return $mailerInstance; @@ -76,7 +76,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail { if (!$recipientInstance instanceof ManageableMember) { // Invalid entry found! throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING); - } + } // END - if // User class found, so entry is valid, first load the template $this->loadTemplate($templateName); @@ -112,7 +112,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail { $responseInstance = $this->getApplicationInstance()->getResponseInstance(); // Transfer the data to the response - $this->getTemplateInstance()->transferToResponse($responseInstance); + $templateInstance->transferToResponse($responseInstance); } // END - foreach } // END - foreach }