]> git.mxchange.org Git - hub.git/commitdiff
Added missing array elements for tag filter
authorRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 21:18:17 +0000 (21:18 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 21:18:17 +0000 (21:18 +0000)
application/hub/main/filter/class_BaseHubFilter.php
application/hub/main/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php
application/hub/main/package/class_NetworkPackage.php

index fd8d07fee1517e8c8f125a300c1f5314ce068d33..3653afbd9aecd3ed86cf59d8ccbe6a501015c1f3 100644 (file)
@@ -62,6 +62,9 @@ class BaseHubFilter extends BaseFilter {
                // And render the XML content (aka message)
                $templateInstance->renderXmlContent($messageContent);
 
+               // Debug message
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(str_replace('_', '-', strtoupper($messageType)) . '-TAG: Handling ' . strlen($messageContent) . ' bytes: ' . $messageContent);
+
                /*
                 * The template system now stores all required data as 'general'
                 * variables, so simply get them. If there is an invalid XML node
index 7b3e0cb8ec3dd8c12ba70556b182b12e511c5b29..bca37da046965c213a099e86f8b0c1a337d6f4ef 100644 (file)
@@ -33,7 +33,8 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
 
                // Init array
                $this->dataXmlNodes = array(
-                       //XmlRequestNodeListAnswerTemplateEngine::ANNOUNCEMENT_DATA_ANSWER_STATUS => '',
+                       XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_SESSION_ID => '',
+                       XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_NODE_LIST  => '',
                );
        }
 
index bf07071e0b1b75520c34dd2b877286aa1de29f97..b00ba909f0ac91898ebec892567f0598c715ce13 100644 (file)
@@ -1118,12 +1118,15 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Get it from the stacker, it is the full array with the processed message
                $messageArray = $this->getStackerInstance()->popNamed(self::STACKER_NAME_PROCESSED_MESSAGE);
 
-               // Create a handler instance from given message type
-               $handlerInstance = MessageTypeHandlerFactory::createMessageTypeHandlerInstance($messageArray[self::MESSAGE_ARRAY_TYPE]);
-
                // Add type for later easier handling
                $messageArray[self::MESSAGE_ARRAY_DATA][self::MESSAGE_ARRAY_TYPE] = $messageArray[self::MESSAGE_ARRAY_TYPE];
 
+               // Debug message
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NETWORK-PACKAGE: messageArray=' . print_r($messageArray, true));
+
+               // Create a handler instance from given message type
+               $handlerInstance = MessageTypeHandlerFactory::createMessageTypeHandlerInstance($messageArray[self::MESSAGE_ARRAY_TYPE]);
+
                // Handle message data
                $handlerInstance->handleMessageData($messageArray[self::MESSAGE_ARRAY_DATA], $this);
        }