private $curr = array();
/**
- * Content from depency
+ * Content from dependency
*/
- private $depencyContent = array();
+ private $dependencyContent = array();
/**
* Protected constructor
}
/**
- * Handles the template depency for given node
+ * Handles the template dependency for given node
*
- * @param $node The node we should load a depency template
- * @param $templateDepency A template to load to satisfy depencies
+ * @param $node The node we should load a dependency template
+ * @param $templateDependency A template to load to satisfy dependencies
* @return void
*/
- private function handleTemplateDepency ($node, $templateDepency) {
- // Is the template depency set?
- if ((!empty($templateDepency)) && (!isset($this->depencyContent[$node]))) {
+ private function handleTemplateDependency ($node, $templateDependency) {
+ // Is the template dependency set?
+ if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
// Get a temporay menu template instance
$templateInstance = ObjectFactory::createObjectByConfiguredName('menu_template_class', array($this->getApplicationInstance(), $this->getMenuInstance()));
// Then load it
- $templateInstance->loadMenuTemplate($templateDepency);
+ $templateInstance->loadMenuTemplate($templateDependency);
// Get an XmlParser instance
$templateInstance->renderXmlContent();
// Parse the template's content contents
- $this->depencyContent[$node] = $templateInstance->getRawTemplateData();
+ $this->dependencyContent[$node] = $templateInstance->getRawTemplateData();
} // END - if
}
/**
* Intializes the menu
*
- * @param $templateDepency A template to load to satisfy depencies
+ * @param $templateDependency A template to load to satisfy dependencies
* @return void
* @todo Add cache creation here
*/
- private function initMenu ($templateDepency = '') {
+ private function initMenu ($templateDependency = '') {
// Get web template engine
$this->setTemplateInstance(ObjectFactory::createObjectByConfiguredName('web_template_class', array($this->getApplicationInstance())));
- // Handle the depency template
- $this->handleTemplateDepency('menu', $templateDepency);
+ // Handle the dependency template
+ $this->handleTemplateDependency('menu', $templateDependency);
// Load the header template for this page
$this->getTemplateInstance()->loadCodeTemplate('menu_global_start');
}
/**
- * Starts the menu entries by loading a (maybe) provided template depency
+ * Starts the menu entries by loading a (maybe) provided template dependency
*
- * @param $templateDepency A template to load to satisfy depencies
+ * @param $templateDependency A template to load to satisfy dependencies
* @return void
*/
- private function startEntryList ($templateDepency = '') {
- // Handle the depency template
- $this->handleTemplateDepency('entries', $templateDepency);
+ 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');