]> git.mxchange.org Git - core.git/commitdiff
endElement() does now no longer ignore sub nodes, debug lines commented out
authorRoland Häder <roland@mxchange.org>
Sat, 5 Sep 2009 00:36:55 +0000 (00:36 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Sep 2009 00:36:55 +0000 (00:36 +0000)
inc/classes/main/template/menu/class_MenuTemplateEngine.php

index 0dbd2cb806bcaf7799a99ab2c2ade74d3415b3eb..32c92ea127cff59eeeda8935ac47e0d84d6a2f46 100644 (file)
@@ -185,7 +185,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                $element = strtolower($element);
 
                // Is the element a main node?
-               /* DEBUG: */ echo "START: &gt;".$element."&lt;<br />\n";
+               //* DEBUG: */ echo "START: &gt;".$element."&lt;<br />\n";
                if (in_array($element, $this->getMainNodes())) {
                        // Okay, main node found!
                        $methodName = 'startMenu' . $this->convertToClassName($element);
@@ -201,7 +201,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                }
 
                // Call method
-               /* DEBUG: */ echo "call: ".$methodName."<br />\n";
+               //* DEBUG: */ echo "call: ".$methodName."<br />\n";
                call_user_func_array(array($this, $methodName), $attributes);
        }
 
@@ -218,20 +218,17 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                $nodeName = strtolower($nodeName);
 
                // Does this match with current main node?
-               /* DEBUG: */ echo "END: &gt;".$nodeName."&lt;<br />\n";
+               //* DEBUG: */ echo "END: &gt;".$nodeName."&lt;<br />\n";
                if (($nodeName != $this->getCurrMainNode()) && (in_array($nodeName, $this->getMainNodes()))) {
                        // Did not match!
                        throw new XmlNodeMismatchException (array($this, $nodeName, $this->getCurrMainNode()), XmlParser::EXCEPTION_XML_NODE_MISMATCH);
-               } elseif (in_array($nodeName, $this->getSubNodes())) {
-                       // Silently ignore sub nodes
-                       return;
-               }
+               } // END - if
 
                // Construct method name
                $methodName = 'finish' . $this->convertToClassName($nodeName);
 
                // Call the corresponding method
-               /* DEBUG: */ echo "call: ".$methodName."<br />\n";
+               //* DEBUG: */ echo "call: ".$methodName."<br />\n";
                call_user_func_array(array($this->getMenuInstance(), $methodName), array());
        }
 
@@ -241,7 +238,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @param       $resource               XML parser resource (currently ignored)
         * @param       $characters             Characters to handle
         * @return      void
-        * @todo        Find something usefull with this!
+        * @todo        Find something useful with this!
         */
        public function characterHandler ($resource, $characters) {
                // Trim all spaces away