X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fselector%2Fclass_ApplicationHelper.php;h=d51ca02ce0454f75e5f1cd1a0973c7d2961ee6c9;hp=7f721c36d5a8e5c1b02da00487dc6aef2ae9f3b8;hb=8ff12f905898b0c2b7ff8124c9749ad6fb9c44f3;hpb=b912eda46059527fc0475e043944c3ebff47fbcd diff --git a/application/selector/class_ApplicationHelper.php b/application/selector/class_ApplicationHelper.php index 7f721c3..d51ca02 100644 --- a/application/selector/class_ApplicationHelper.php +++ b/application/selector/class_ApplicationHelper.php @@ -22,9 +22,9 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @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 + * @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 @@ -74,14 +74,9 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Call parent constructor parent::__construct(__CLASS__); - // Set description - $this->setObjectDescription("Application-Helper"); - - // Create an unique ID - $this->createUniqueID(); - // Tidy up a little $this->removeSystemArray(); + $this->removeNumberFormaters(); } /** @@ -179,7 +174,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica */ public final function entryPoint () { // Get a prepared instance of ApplicationSelector - $selInstance = ApplicationSelector::createApplicationSelector(LanguageSystem::getInstance(), FileIOHandler::getInstance()); + $selInstance = ApplicationSelector::createApplicationSelector(LanguageSystem::getInstance(), FileIoHandler::getInstance()); // Remove the ignore list from the object $selInstance->removeDirIgnoreList(); @@ -193,6 +188,28 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Insert all application templates $selInstance->insertApplicationTemplates(); } + + /** + * 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) { + die("
".print_r($messageList, true)."
"); + } + + /** + * Assigns application-depending data + * + * @param $templateInstance An instance of a template engine + * @return void + */ + public function assignExtraTemplateData (CompileableTemplate $templateInstance) { + // Assign charset + $templateInstance->assignConfigVariable('header_charset'); + } } // [EOF]