]> git.mxchange.org Git - hub.git/blobdiff - application/hub/class_ApplicationHelper.php
Code merge from latest ship-simu code
[hub.git] / application / hub / class_ApplicationHelper.php
index 60409b70c56e2333e0eaaff768e963dc89288da5..466ff6d83a5e61443e033dfe6bbf52e2a0e1e727 100644 (file)
@@ -64,12 +64,12 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         *
         * @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();
@@ -176,6 +176,29 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                // Shutdown the hub
                $hubInstance->shutdownHub();
        }
+
+       /**
+        * Getter for master template name
+        *
+        * @return      $masterTemplate         Name of the master template
+        */
+       public final function getMasterTemplate () {
+               return "hub_main";
+       }
+
+       /**
+        * 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]