]> git.mxchange.org Git - hub.git/commitdiff
Please don't call addArrayToDataSet() in class NodeMessageSelfConnectHandler, this...
authorRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:54:29 +0000 (19:54 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:54:29 +0000 (19:54 +0000)
application/hub/main/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php

index 3b4c138926ffae8cc8b736eeefe459a58642cb97..00d1acbc11725204045ace3f58b02f8a38352464 100644 (file)
@@ -33,12 +33,6 @@ class NodeMessageSelfConnectHandler extends BaseMessageHandler implements Handle
 
                // Set handler name
                $this->setHandlerName('message_type_self_connect');
-
-               // Init message data array
-               $this->messageDataElements = array(
-                       XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_NODE_ID,
-                       XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_SESSION_ID
-               );
        }
 
        /**
@@ -85,16 +79,11 @@ class NodeMessageSelfConnectHandler extends BaseMessageHandler implements Handle
         * @param       $dataSetInstance        An instance of a StoreableCriteria class
         * @param       $messageData            An array with all message data
         * @return      void
+        * @throws      UnsupportedOperationException   If this method is called
         */
        public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
-               // Add all ements
-               foreach ($this->messageDataElements as $key) {
-                       // Is it there?
-                       assert(isset($messageData[$key]));
-
-                       // Add it
-                       $dataSetInstance->addCriteria('node_' . $key, $messageData[$key]);
-               } // END - foreach
+               // Please don't call this method!
+               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }