]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/commands/web/class_WebRegisterCommand.php
Menu classes added, unfinished
[core.git] / inc / classes / main / commands / web / class_WebRegisterCommand.php
index c23b6476ea84b27982ca5408ebdec5e8694d04bc..d72a3acd885cbb9e488aabf8eef49e2d77591497 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -73,7 +73,7 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
                $templateInstance->assignConfigVariable('base_url');
 
                // Load the master template
-               $masterTemplate = $appInstance->getMasterTemplate();
+               $masterTemplate = $appInstance->buildMasterTemplateName();
 
                // Load header template
                $templateInstance->loadCodeTemplate('header');
@@ -102,6 +102,10 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
                // Set title
                $templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage('page_register_title'));
 
+               // Construct the menu in every command. We could do this in BaseCommand class. But this means
+               // *every* command has a navigation system and that is want we don't want.
+               $menuInstance = ObjectFactory::createObjectByConfiguredName('register_menu_class', array($appInstance));
+
                // ... 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.
@@ -119,7 +123,7 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               // Empty class
+               // Empty method
        }
 }