]> git.mxchange.org Git - hub.git/commitdiff
Added missing dataXmlNodes array, added debug line
authorRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 19:43:07 +0000 (19:43 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 19:43:07 +0000 (19:43 +0000)
application/hub/main/filter/tags/class_PackageRequestNodeListTagFilter.php
application/hub/main/handler/message-types/class_BaseMessageHandler.php
application/hub/main/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php

index f97e76b527df55fc60f3adb3cf3101dd0d13b115..05c27db36efb089716381dec2b0e8ee28d6b78e5 100644 (file)
@@ -30,6 +30,12 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Init XML nodes array which contains the required data
+               $this->dataXmlNodes = array(
+                       XmlRequestNodeListTemplateEngine::REQUEST_DATA_ACCEPTED_OBJECT_TYPES => '',
+                       XmlRequestNodeListTemplateEngine::REQUEST_DATA_SESSION_ID            => '',
+               );
        }
 
        /**
index adf44452169ebf51b0b7788c28b1c8b1592df2a8..882fb475864b31b29d1d724f142305df90d8dce7 100644 (file)
@@ -77,6 +77,9 @@ abstract class BaseMessageHandler extends BaseDataHandler {
 
                // Search for the node's session id and external IP/hostname + TCP port
                foreach ($this->searchData as $key) {
+                       // Debug message
+                       //* DEBUG: */ $this->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData,true));
+
                        // Add criteria
                        $searchInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);
                } // END - foreach
index f537b8ed001a1ccad3ad05c44f0fb1fd5a34fb76..81c7d830a33e8e21d807490af6cc249de682bbb6 100644 (file)
@@ -69,7 +69,7 @@ class NodeMessageSelfConnectHandler extends BaseMessageHandler implements Handle
                } else {
                        // Something really horrible happened
                        // @TODO Throw an exception here instead of dying
-                       $this->debugInstance(__METHOD__ . ':IDs mismatch! messageData=' . print_r($messageData, true));
+                       $this->debugInstance(__METHOD__ . ': ids mismatching! messageData=' . print_r($messageData, true));
                }
        }