X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fmxchange%2Fclass_ApplicationHelper.php;h=1319a4a3606f4451934f47d403c62c65d9531d67;hb=42bc0e1fc5ae4653fe04c9d41474c874a0050b69;hp=372d53612fae418e9edd1b00025982aeae652895;hpb=666210d9addd5d19b9dba98b05e8b824b4116c9a;p=mailer.git diff --git a/application/mxchange/class_ApplicationHelper.php b/application/mxchange/class_ApplicationHelper.php index 372d53612f..1319a4a360 100644 --- a/application/mxchange/class_ApplicationHelper.php +++ b/application/mxchange/class_ApplicationHelper.php @@ -20,8 +20,24 @@ * Please remember that this include file is being loaded *before* the class * loader is loading classes from "exceptions", "interfaces" and "main"! * - * @author Roland Haeder - * @version 0.1 + * @author Roland Haeder + * @version 0.0.0 + * @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 + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 . */ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication { /** @@ -44,20 +60,25 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica */ private static $thisInstance = null; + /** + * Master template + */ + private $masterTemplate = "mxchange_main"; + /** * Private constructor * * @return void */ - private function __construct () { + protected function __construct () { // Call parent constructor - parent::constructor(__CLASS__); + parent::__construct(__CLASS__); // Set description - $this->setPartDescr("Application-Helper"); + $this->setObjectDescription("Application-Helper"); // Create an unique ID - $this->createUniqueID(); + $this->generateUniqueId(); // Tidy up a little $this->removeSystemArray(); @@ -150,6 +171,29 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Not yet implemented trigger_error(__METHOD__.": Not yet implemented!"); } + + /** + * Getter for master template name + * + * @return $masterTemplate Name of the master template + */ + public final function getMasterTemplate () { + return $this->masterTemplate; + } + + /** + * Handle the indexed array of fatal messages and puts them out in an + * acceptable fasion + * + * @param $messageList An array of fatal messages + * @return void + */ + public function handleFatalMessages (array $messageList) { + // Walk through all messages + foreach ($messageList as $message) { + die("MSG:".$message); + } + } } // [EOF]