/**
* 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
*/
// 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.');
}
/**
* @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.');
}
/**
* @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.');
}
/**
* @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.');
}
/**