- // 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());
- }
-
- /**
- * Finishes the menu
- *
- * @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());
- }
-
- /**
- * Starts the menu entries by loading a (maybe) provided template dependency
- *
- * @param $templateDependency A template to load to satisfy dependencies
- * @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());