X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fselector%2Fclass_ApplicationHelper.php;h=d51ca02ce0454f75e5f1cd1a0973c7d2961ee6c9;hp=d2e4c9153e66669f6624e0efec6d5a5e89b411c1;hb=8ff12f905898b0c2b7ff8124c9749ad6fb9c44f3;hpb=b44e5e7347f9a1dbd49b5b47d506a4f6526caf2f diff --git a/application/selector/class_ApplicationHelper.php b/application/selector/class_ApplicationHelper.php index d2e4c91..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->generateUniqueId(); - // Tidy up a little $this->removeSystemArray(); + $this->removeNumberFormaters(); } /** @@ -204,6 +199,17 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica 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]