]> git.mxchange.org Git - mailer.git/blobdiff - application/mxchange/class_ApplicationHelper.php
Tab-stop is now 5
[mailer.git] / application / mxchange / class_ApplicationHelper.php
index 435d343ed58dcad620765c606aaa1e41fcc6ca9b..dee4ef6d250f4264edaa621646b4bdda917d5e7f 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
+ * @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
@@ -60,23 +60,23 @@ 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__);
-
-               // Set description
-               $this->setObjectDescription("Application-Helper");
-
-               // Create an unique ID
-               $this->createUniqueID();
+               parent::__construct(__CLASS__);
 
                // Tidy up a little
                $this->removeSystemArray();
+               $this->removeNumberFormaters();
        }
 
        /**
@@ -111,8 +111,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public final function setAppVersion ($appVersion) {
                // Cast and set it
-               $appVersion = (string) $appVersion;
-               $this->appVersion = $appVersion;
+               $this->appVersion = (string) $appVersion;
        }
 
        /**
@@ -132,8 +131,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public final function setAppName ($appName) {
                // Cast and set it
-               $appName = (string) $appName;
-               $this->appName = $appName;
+               $this->appName = (string) $appName;
        }
 
        /**
@@ -153,8 +151,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public final function setAppShortName ($shortName) {
                // Cast and set it
-               $shortName = (string) $shortName;
-               $this->shortName = $shortName;
+               $this->shortName = (string) $shortName;
        }
 
        /**
@@ -166,6 +163,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]