Typos fixed
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 11:37:14 +0000 (11:37 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2009 11:37:14 +0000 (11:37 +0000)
inc/classes/main/class_BaseFrameworkSystem.php
inc/classes/main/template/menu/class_MenuTemplateEngine.php

index afb1cfa..0b14dcb 100644 (file)
@@ -929,7 +929,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         * @return      $localized      Localized value
         */
        public function doFilterFormatNumber ($value) {
-               // Generate it from config and localize depencies
+               // Generate it from config and localize dependencies
                switch ($this->getLanguageInstance()->getLanguageCode()) {
                        case 'de': // German format is a bit different to default
                                $localized = number_format($value, $this->getConfigInstance()->getConfigEntry('decimals'), ',', '.');
index ef169e4..37dfca2 100644 (file)
@@ -68,9 +68,9 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        private $curr = array();
 
        /**
-        * Content from depency
+        * Content from dependency
         */
-       private $depencyContent = array();
+       private $dependencyContent = array();
 
        /**
         * Protected constructor
@@ -284,42 +284,42 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * 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');
@@ -348,14 +348,14 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * 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');