X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fselector%2Fclass_ApplicationHelper.php;h=6b3a1d99311e6a762e7d766977ea9bcb43f2eec5;hb=758554bdbe167d7503552e086f7955a5e851f657;hp=9e62fc0c27edcc73c662509374b31616ab7a96a3;hpb=f090ddd80669edddadcf4d682384532d93ce1fff;p=shipsimu.git
diff --git a/application/selector/class_ApplicationHelper.php b/application/selector/class_ApplicationHelper.php
index 9e62fc0..6b3a1d9 100644
--- a/application/selector/class_ApplicationHelper.php
+++ b/application/selector/class_ApplicationHelper.php
@@ -24,7 +24,7 @@
* @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.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
@@ -37,7 +37,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
+ * along with this program. If not, see .
*/
class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
/**
@@ -55,25 +55,30 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
*/
private $shortName = "";
+ /**
+ * Name of the master template
+ */
+ private $masterTemplate = "";
+
/**
* An instance of this class
*/
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @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();
+ $this->generateUniqueId();
// Tidy up a little
$this->removeSystemArray();
@@ -157,6 +162,15 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
$this->shortName = $shortName;
}
+ /**
+ * Getter for master template name
+ *
+ * @return $masterTemplate Name of the master template
+ */
+ public final function getMasterTemplate () {
+ return $this->masterTemplate;
+ }
+
/**
* Launcher for the application selector
*
@@ -165,7 +179,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();
@@ -179,6 +193,17 @@ 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)."
");
+ }
}
// [EOF]