]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/template/menu/class_MenuTemplateEngine.php
Methods renamed
[core.git] / inc / classes / main / template / menu / class_MenuTemplateEngine.php
index 84e94e21f1216fad404858eedd12d87e103a7bf8..ef169e409e05cd25db67c447bbba817c0bac63d7 100644 (file)
@@ -35,11 +35,18 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        private $subNodes = array(
                'entry-list',
                'entry',
+               'entry-id',
                'entries-content',
-               'header',
-               'footer',
+               'block-header',
+               'block-footer',
+               'footer-id',
+               'footer-class',
+               'footer-text',
                'block',
                'title',
+               'title-id',
+               'title-class',
+               'title-text',
                'design',
                'text',
                'advert',
@@ -377,11 +384,11 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * Starts the menu header
+        * Starts the menu block header
         *
         * @return      void
         */
-       private function startHeader () {
+       private function startBlockHeader () {
                // Do we have a template instance?
                if (is_null($this->getTemplateInstance())) {
                        // Init template instance for underlaying web templates
@@ -402,11 +409,11 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * Finishes the menu header
+        * Finishes the menu block header
         *
         * @return      void
         */
-       private function finishHeader () {
+       private function finishBlockHeader () {
                // Load the header template for this page
                $this->getTemplateInstance()->loadCodeTemplate('menu_header_end');
 
@@ -418,11 +425,11 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * Starts the menu footer
+        * Starts the menu block footer
         *
         * @return      void
         */
-       private function startFooter () {
+       private function startBlockFooter () {
                // Do we have a template instance?
                if (is_null($this->getTemplateInstance())) {
                        // Init template instance for underlaying web templates
@@ -443,11 +450,11 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * Finishes the menu footer
+        * Finishes the menu block footer
         *
         * @return      void
         */
-       private function finishFooter () {
+       private function finishBlockFooter () {
                // Load the footer template for this page
                $this->getTemplateInstance()->loadCodeTemplate('menu_footer_end');
 
@@ -461,22 +468,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 +480,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.');
        }
 
        /**
@@ -539,21 +527,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        /**
         * Starts the menu property 'entry'
         *
-        * @param       $id             Id of the menu
         * @return      void
         */
-       private function startEntry ($id) {
-               // Set id as current
-               $this->curr['entry_id'] = $id;
-
-               // Load the entry template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_entry_' . $id . '_start');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('entry_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+       private function startEntry () {
+               $this->partialStub('Cleared due to XML rewrite.');
        }
 
        /**
@@ -562,15 +539,9 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function finishEntry () {
-               // Load the entry template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_entry_' . $this->curr['entry_id'] . '_end');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('entry_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleared due to XML rewrite.');
        }
+
        /**
         * Starts the menu property 'anchor'
         *