// 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
- );
}
/**
* @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);
}
}