* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createWebLoginAreaCommand (CommandResolver $resolverInstance) {
+ public static final function createHtmlLoginAreaCommand (CommandResolver $resolverInstance) {
// Get new instance
- $commandInstance = new WebLoginAreaCommand();
+ $commandInstance = new HtmlLoginAreaCommand();
// Set the application instance
$commandInstance->setResolverInstance($resolverInstance);
// Assign the main template with the master template as a content ... ;)
$templateInstance->compileTemplate();
- $templateInstance->assignTemplateWithVariable('login_main', 'content');
+ $templateInstance->assignTemplateWithVariable('login_main', 'main_content');
// Load the master template
$templateInstance->loadCodeTemplate($masterTemplate);
$applicationInstance = $registryInstance->getInstance('application');
// Default action is the one from configuration
- $this->actionName = $this->convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $this->getConfigInstance()->getConfigEntry('login_default_action');
+ $this->actionName = self::convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $this->getConfigInstance()->getConfigEntry('login_default_action');
// Get "action" from request
$actReq = $requestInstance->getRequestElement('action');
// Do we have a "action" parameter set?
if ((is_string($actReq)) && (!empty($actReq))) {
// Then use it with prefix
- $this->actionName = $this->convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $actReq;
+ $this->actionName = self::convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $actReq;
} // END - if
// Get application instance
$applicationInstance = $this->getResolverInstance()->getApplicationInstance();
// Get a resolver
- $actionResolver = WebActionResolver::createWebActionResolver($this->actionName, $applicationInstance);
+ $actionResolver = HtmlActionResolver::createHtmlActionResolver($this->actionName, $applicationInstance);
// Resolve the action
$actionInstance = $actionResolver->resolveAction();