]> git.mxchange.org Git - hub.git/commitdiff
Added two generic elements to node-list table
authorRoland Häder <roland@mxchange.org>
Fri, 17 Aug 2012 21:20:23 +0000 (21:20 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Aug 2012 21:20:23 +0000 (21:20 +0000)
application/hub/main/database/wrapper/node/class_NodeListDatabaseWrapper.php
application/hub/main/handler/answer-status/class_BaseAnserStatusHandler.php

index f5f860ab8b339ff50cf48bb69f9ae439d9d50f0e..8b55018a1c6174e7af61a37cbd29842c24a8d695 100644 (file)
@@ -25,6 +25,10 @@ class NodeListDatabaseWrapper extends BaseDatabaseWrapper implements NodeListWra
        // Table names
        const DB_TABLE_NODE_LIST = 'node_list';
 
+       // Table columns
+       const DB_COLUMN_ANSWER_STATUS = 'last_answer_status';
+       const DB_COLUMN_MESSAGE_TYPE  = 'last_message_type';
+
        // Other constants
        const INVALID_IP_PORT = 'invalid:invalid';
 
index 93d24ed21ffc6dd2df0a57dfe498a22ab8812a0c..3d579a0f0c87e75956bda041f766b068717f5e56 100644 (file)
@@ -66,7 +66,9 @@ class BaseAnserStatusHandler extends BaseHandler {
         * @return      void
         */
        public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
-               die(__METHOD__.chr(10));
+               // Add some generic data all messageData arrays provide
+               $dataSetInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_ANSWER_STATUS, $messageData[XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_ANSWER_STATUS]);
+               $dataSetInstance->addCriteria(NodeListDatabaseWrapper::DB_COLUMN_MESSAGE_TYPE , $messageData[NetworkPackage::MESSAGE_ARRAY_TYPE]);
        }
 }