From: Roland Häder Date: Wed, 30 Jan 2013 20:17:00 +0000 (+0000) Subject: Added basic XML elements (not all fully supported) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c725d6ef0737fee1df2f08de4286081040625602;p=hub.git Added basic XML elements (not all fully supported) --- diff --git a/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php b/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php index 24d0db998..93942b8b8 100644 --- a/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php +++ b/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php @@ -37,6 +37,7 @@ class NodeMessageRequestNodeListAnswerHandler extends BaseMessageHandler impleme // Init message data array $this->messageDataElements = array( XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_SESSION_ID, + XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_NODE_LIST, ); // Init message-data->configuration translation array diff --git a/application/hub/main/handler/message-types/class_BaseMessageHandler.php b/application/hub/main/handler/message-types/class_BaseMessageHandler.php index 0e6c6bfe6..7770d236b 100644 --- a/application/hub/main/handler/message-types/class_BaseMessageHandler.php +++ b/application/hub/main/handler/message-types/class_BaseMessageHandler.php @@ -68,7 +68,6 @@ abstract class BaseMessageHandler extends BaseDataHandler { protected function registerNodeByMessageData (array $messageData) { // Check if searchData has entries assert(count($this->searchData) > 0); - self::createDebugInstance(__CLASS__)->debugOutput('messageData=' . print_r($messageData, true)); // Get a wrapper instance $wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_list_db_wrapper_class'); diff --git a/application/hub/main/template/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php b/application/hub/main/template/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php index 0a3e44b9d..fd0bf4520 100644 --- a/application/hub/main/template/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php +++ b/application/hub/main/template/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php @@ -24,7 +24,8 @@ */ class XmlRequestNodeListAnswerTemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable { // Constants for array elements - const REQUEST_DATA_SESSION_ID = 'session-id'; + const REQUEST_DATA_SESSION_ID = 'my-session-id'; + const REQUEST_DATA_NODE_LIST = 'node-list'; /** * Protected constructor @@ -37,7 +38,8 @@ class XmlRequestNodeListAnswerTemplateEngine extends BaseXmlTemplateEngine imple // Init sub-nodes array $this->subNodes = array( - XmlRequestNodeListTemplateEngine::REQUEST_DATA_SESSION_ID, + self::REQUEST_DATA_SESSION_ID, + self::REQUEST_DATA_NODE_LIST, ); } diff --git a/application/hub/templates/xml/answer/requests/request_node_list_answer.xml b/application/hub/templates/xml/answer/requests/request_node_list_answer.xml index b7e0bd2f4..fbdeb9fbc 100644 --- a/application/hub/templates/xml/answer/requests/request_node_list_answer.xml +++ b/application/hub/templates/xml/answer/requests/request_node_list_answer.xml @@ -22,4 +22,12 @@ You should have received a copy of the GNU General Public License along with this program. If not, see //--> + + {?my_session_id?} + +