} // END - if
// ... and a new response object
- $responseClass = sprintf("%sResponse", $this->convertToClassName($response));
+ $responseClass = sprintf('%sResponse', $this->convertToClassName($response));
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
$this->setResponseInstance($responseInstance);
// Get the parameter from the request
- $commandName = $requestInstance->getRequestElement('command');
+ $commandName = $requestInstance->getRequestElement('page');
// If it is null then get default command
if (is_null($commandName)) {
$commandName = $responseInstance->getDefaultCommand();
// Set it in request
- $requestInstance->setRequestElement('command', $commandName);
+ $requestInstance->setRequestElement('page', $commandName);
} // END - if
// Get a controller resolver
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
+ // Initialize language system
+ $languageInstance = ObjectFactory::createObjectByConfiguredName('language_system_class');
+
+ // And set it here
+ $this->setLanguageInstance($languageInstance);
+
// Launch the main routine here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
}
+ /**
+ * Assigns extra application-depending data
+ *
+ * @param $templateInstance An instance of a CompileableTemplate
+ * @return void
+ * @todo Nothing to add?
+ */
+ public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
+ }
+
/**
* Handle the indexed array of fatal messages and puts them out in an
* acceptable fasion
} // END - if
// ... and a new response object
- $responseClass = sprintf("%sResponse", $this->convertToClassName($response));
+ $responseClass = sprintf('%sResponse', $this->convertToClassName($response));
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
$this->setResponseInstance($responseInstance);
// Get the parameter from the request
- $commandName = $requestInstance->getRequestElement('command');
+ $commandName = $requestInstance->getRequestElement('page');
// If it is null then get default command
if (is_null($commandName)) {
$commandName = $responseInstance->getDefaultCommand();
// Set it in request
- $requestInstance->setRequestElement('command', $commandName);
+ $requestInstance->setRequestElement('page', $commandName);
} // END - if
// Get a controller resolver
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
+ // Initialize language system
+ $languageInstance = ObjectFactory::createObjectByConfiguredName('language_system_class');
+
+ // And set it here
+ $this->setLanguageInstance($languageInstance);
+
// Launch the main routine here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
}
+ /**
+ * Assigns extra application-depending data
+ *
+ * @param $templateInstance An instance of a CompileableTemplate
+ * @return void
+ * @todo Nothing to add?
+ */
+ public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
+ }
+
/**
* Handle the indexed array of fatal messages and puts them out in an
* acceptable fasion
// CFG: HEADER-CHARSET
$cfg->setConfigEntry('header_charset', 'utf-8');
-// CFG: DEFAULT-WEB-COMMAND
-$cfg->setConfigEntry('default_web_command', 'home');
+// CFG: DEFAULT-SHIP-SIMU-HTML-COMMAND
+$cfg->setConfigEntry('default_ship_simu_html_command', 'home');
+
+// CFG: DEFAULT-HTML-COMMAND
+$cfg->setConfigEntry('default_html_command', 'home');
// CFG: DEFAULT-IMAGE-COMMAND
$cfg->setConfigEntry('default_image_command', 'build');
// CFG: CONFIRM-DIRECT-LOGIN-ACTION-URL
$cfg->setConfigEntry('confirm_direct_login_action_url', 'index.php?app={?app_short_name?}&page=login_area');
-// CFG: WEB-CMD-USER-IS-NULL-URL
-$cfg->setConfigEntry('web_cmd_user_is_null_url', 'index.php?app={?app_short_name?}&page=problem&problem=user_null');
+// CFG: HTML-CMD-USER-IS-NULL-URL
+$cfg->setConfigEntry('html_cmd_user_is_null_url', 'index.php?app={?app_short_name?}&page=problem&problem=user_null');
// CFG: NEWS-READER-HOME-CLASS
$cfg->setConfigEntry('news_reader_home_class', 'DefaultNewsReader');
// CFG: GOVERNMENT-TRAINING-LIMIT
$cfg->setConfigEntry('government_training_limit', 2);
-// CFG: WEB-BLOCK-HELPER
-$cfg->setConfigEntry('web_block_helper', 'WebBlockHelper');
+// CFG: HTML-BLOCK-HELPER
+$cfg->setConfigEntry('html_block_helper', 'HtmlBlockHelper');
-// CFG: WEB-FORM-HELPER
-$cfg->setConfigEntry('web_form_helper', 'WebFormHelper');
+// CFG: HTML-FORM-HELPER
+$cfg->setConfigEntry('html_form_helper', 'HtmlFormHelper');
-// CFG: WEB-LINK-HELPER
-$cfg->setConfigEntry('web_link_helper', 'WebLinkHelper');
+// CFG: HTML-LINK-HELPER
+$cfg->setConfigEntry('html_link_helper', 'HtmlLinkHelper');
-// CFG: WEB-CMD-GOVERNMENT-FAILED-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_government_failed_resolver_class', 'WebGovernmentFailedCommandResolver');
+// CFG: HTML-CMD-GOVERNMENT-FAILED-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_government_failed_resolver_class', 'HtmlGovernmentFailedCommandResolver');
-// CFG: WEB-CMD-LOGIN-FAILED-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_login_failed_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-LOGIN-FAILED-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_login_failed_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-COMPANY-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_company_resolver_class', 'WebCompanyCommandResolver');
+// CFG: HTML-CMD-COMPANY-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_company_resolver_class', 'HtmlCompanyCommandResolver');
-// CFG: WEB-CMD-HOME-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-HOME-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_home_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-REGISTER-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_register_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-REGISTER-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_register_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-DO-FORM-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_do_form_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-DO-FORM-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_do_form_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-LOGIN-AREA-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_login_area_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-LOGIN-AREA-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_login_area_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-CONFIRM-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_confirm_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-CONFIRM-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_confirm_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-PROBLEM-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_problem_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-PROBLEM-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_problem_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-LOGOUT-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_logout_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-LOGOUT-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_logout_resolver_class', 'HtmlCommandResolver');
-// CFG: WEB-CMD-LOGOUT-DONE-RESOLVER-CLASS
-$cfg->setConfigEntry('web_cmd_logout_done_resolver_class', 'WebCommandResolver');
+// CFG: HTML-CMD-LOGOUT-DONE-RESOLVER-CLASS
+$cfg->setConfigEntry('html_cmd_logout_done_resolver_class', 'HtmlCommandResolver');
// CFG: REFILL-REQUEST-CURRENCY-PAYMENT-TYPE
$cfg->setConfigEntry('refill_request_currency_payment_type', 'test');