/**
* Handles the template dependency for given node
*
- * @param $node The node we should load a dependency template
- * @param $templateDependency A template to load to satisfy dependencies
+ * @param $node The node we should load a dependency template
+ * @param $templateDependency A template to load to satisfy dependencies
* @return void
*/
private function handleTemplateDependency ($node, $templateDependency) {
/**
* 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.');
}
/**
* @return void
*/
private function startBlockHeader () {
- // Do we have a template instance?
- if (is_null($this->getTemplateInstance())) {
- // Init template instance for underlaying web templates
- $templateInstance = ObjectFactory::createObjectByConfiguredName('web_template_class');
-
- // Set it in this template engine
- $this->setTemplateInstance($templateInstance);
- } // END - if
-
- // Load the header template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_header_start');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('header', $this->getTemplateInstance()->getRawTemplateData());
+ $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
}
/**
* @return void
*/
private function finishBlockHeader () {
- // Load the header template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_header_end');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('header_end', $this->getTemplateInstance()->getRawTemplateData());
+ $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
}
/**
* @return void
*/
private function startBlockFooter () {
- // Do we have a template instance?
- if (is_null($this->getTemplateInstance())) {
- // Init template instance for underlaying web templates
- $templateInstance = ObjectFactory::createObjectByConfiguredName('web_template_class');
-
- // Set it in this template engine
- $this->setTemplateInstance($templateInstance);
- } // END - if
-
- // Load the footer template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_footer_start');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('footer', $this->getTemplateInstance()->getRawTemplateData());
+ $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
}
/**
* @return void
*/
private function finishBlockFooter () {
- // Load the footer template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_footer_end');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('footer_end', $this->getTemplateInstance()->getRawTemplateData());
+ $this->partialStub('Cleaned because we do not want templates with partly HTML code.');
}
/**