]> git.mxchange.org Git - core.git/commitdiff
Cleaned up because we do not want templates with partly HTML code
authorRoland Häder <roland@mxchange.org>
Mon, 7 Dec 2009 22:16:22 +0000 (22:16 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Dec 2009 22:16:22 +0000 (22:16 +0000)
inc/classes/main/template/menu/class_MenuTemplateEngine.php

index 14891aafe853e1acc28f04f60a4f045eacca5575..d7c5875ce950e2300353b4a4ed270777e2f0b173 100644 (file)
@@ -317,7 +317,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        /**
         * Intializes the menu
         *
-        * @param       $templateDependency     A template to load to satisfy dependencies
+        * @param       $templateDependency             A template to load to satisfy dependencies
         * @return      void
         * @todo        Add cache creation here
         */
@@ -328,14 +328,8 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                // Handle the dependency template
                $this->handleTemplateDependency('menu', $templateDependency);
 
-               // Load the header template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_global_start');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('menu_start', $this->getTemplateInstance()->getRawTemplateData());
+               // Code cleaned up...
+               $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
        }
 
        /**
@@ -344,14 +338,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function finishMenu () {
-               // Load the header template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_global_end');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('menu_end', $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
        }
 
        /**
@@ -361,17 +348,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function startEntryList ($templateDependency = '') {
-               // Handle the dependency template
-               $this->handleTemplateDependency('entries', $templateDependency);
-
-               // Load the header template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_entries_start');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('entries_start', $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
        }
 
        /**
@@ -380,14 +357,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function finishEntryList () {
-               // Load the header template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_entries_end');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('entries_end', $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
        }
 
        /**