*
* @param $messageData An array of all message data
* @param $handlerInstance An instance of a HandleableMessage class
+ * @param $searchInstance An instance of LocalSearchCriteria class
* @return void
*/
- function updateNodeByMessageData (array $messageData, HandleableMessage $handlerInstance);
+ function updateNodeByMessageData (array $messageData, HandleableMessage $handlerInstance, LocalSearchCriteria $searchInstance);
}
// [EOF]
*
* @param $messageData An array of all message data
* @param $handlerInstance An instance of a HandleableMessage class
+ * @param $searchInstance An instance of LocalSearchCriteria class
* @return void
*/
- public function updateNodeByMessageData (array $messageData, HandleableMessage $handlerInstance) {
+ public function updateNodeByMessageData (array $messageData, HandleableMessage $handlerInstance, LocalSearchCriteria $searchInstance) {
// Get a data set instance
$dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_NODE_LIST));
+ // Add search instance
+ $dataSetInstance->setSearchInstance($searchInstance);
+
// Set primary key (session id)
$dataSetInstance->setUniqueKey('node_' . XmlAnnouncementTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID);
// Is there already an entry?
if ($resultInstance->next()) {
// Entry found, so update it
- $wrapperInstance->updateNodeByMessageData($messageData, $this);
+ $wrapperInstance->updateNodeByMessageData($messageData, $this, $searchInstance);
} else {
// Nothing found, so register it
$wrapperInstance->registerNodeByMessageData($messageData, $this);