]> git.mxchange.org Git - mailer.git/blobdiff - application/mxchange/class_ApplicationHelper.php
More code merged from ship-simu
[mailer.git] / application / mxchange / class_ApplicationHelper.php
index 435d343ed58dcad620765c606aaa1e41fcc6ca9b..1319a4a3606f4451934f47d403c62c65d9531d67 100644 (file)
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
- * @author             Roland Haeder <webmaster@mxchange.org>
- * @version            0.3.0
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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.mxchange.org
+ * @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
@@ -60,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->setObjectDescription("Application-Helper");
 
                // Create an unique ID
-               $this->createUniqueID();
+               $this->generateUniqueId();
 
                // Tidy up a little
                $this->removeSystemArray();
@@ -166,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]