Signed-off-by: Roland Häder <roland@mxchange.org>
* @return void
*/
public function transferContentToTemplateEngine (CompileableTemplate $templateInstance) {
- $this->debugInstance();
- $this->partialStub('templateInstance=' . $templateInstance->__toString());
+ // Assign menu content to variable
+ $templateInstance->assignVariable('menu_content', $this->getTemplateInstance()->getMenuContent());
+ //* DEBUG */ $templateInstance->debugInstance();
}
}
$this->menuEntries = array();
}
+ /**
+ * "Getter" for menu content
+ *
+ * @return $menuContent Returned menu content
+ */
+ public function getMenuContent () {
+ // Implode menuBlocks
+ $menuContent = implode('', $this->menuBlocks);
+
+ // Clean variable
+ $this->menuBlocks = array();
+
+ // And return it
+ return $menuContent;
+ }
+
/**
* Getter for menu cache file (FQFN)
*