Clear methods due to XML rewrites (see shipsimu project)
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 11:06:16 +0000 (11:06 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 11:06:16 +0000 (11:06 +0000)
inc/classes/main/request/web/class_HttpRequest.php
inc/classes/main/template/menu/class_MenuTemplateEngine.php

index 397911502ff4db5f52204cf69a5b1eb65e30333a..1ba80d75b07a6f0ad1e72652cb92e1332b3c36a8 100644 (file)
@@ -7,6 +7,7 @@
  * @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
+ * @todo               Move out the cookie part to a seperate class, e.g. Cookie
  *
  * 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
index 84e94e21f1216fad404858eedd12d87e103a7bf8..6584ab193b8a6a68fdadff1210a80e320d6e5f34 100644 (file)
@@ -461,22 +461,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        /**
         * Starts the menu property 'title'
         *
-        * @param       $id             Id of the menu
-        * @param       $class  The title to add to the menu
         * @return      void
         */
-       private function startTitle ($id, $class) {
-               // Set id as current
-               $this->curr['id'] = $id;
-
-               // Load the title template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $id . '_start');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('title_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+       private function startTitle () {
+               $this->partialStub('Cleared due to XML rewrite.');
        }
 
        /**
@@ -485,14 +473,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function finishTitle () {
-               // Load the title template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $this->curr['id'] . '_end');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('title_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleared due to XML rewrite.');
        }
 
        /**