]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebLoginFailedCommand.php
Actions (so called sub-commands) may now have own pre/post filter, profile update...
[shipsimu.git] / inc / classes / main / commands / web / class_WebLoginFailedCommand.php
index 34a1970cf372d16b6420db27c33879e298cd0d34..eead89a417fcca894ed9dfca21192c27778a0189 100644 (file)
@@ -32,7 +32,7 @@ class WebLoginFailedCommand extends BaseCommand implements Commandable {
                parent::__construct(__CLASS__);
 
                // Set special description
-               $this->setObjectDescription("Command for the "home" page");
+               $this->setObjectDescription("Command for the "login failed" page");
 
                // Create unique ID number
                $this->generateUniqueId();
@@ -101,6 +101,9 @@ class WebLoginFailedCommand extends BaseCommand implements Commandable {
                // Set title
                $templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage('login_failed_title'));
 
+               // Assign base URL
+               $templateInstance->assignConfigVariable('base_url');
+
                // ... and all variables. This should be merged together in a pattern
                // to make things easier. A cache mechanism should be added between
                // these two calls to cache compiled templates.
@@ -109,6 +112,17 @@ class WebLoginFailedCommand extends BaseCommand implements Commandable {
                // Get the content back from the template engine and put it in the response class
                $templateInstance->transferToResponse($responseInstance);
        }
+
+       /**
+        * Adds extra filters to the given controller instance
+        *
+        * @param       $controllerInstance             A controller instance
+        * @param       $requestInstance                An instance of a class with an Requestable interface
+        * @return      void
+        */
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+               // Empty for now
+       }
 }
 
 // [EOF]