assert(isset($messageData[$key]));
// Add criteria
- $searchInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);
+ $searchInstance->addCriteria(str_replace('my-', '', $key), $messageData[$key]);
} // END - foreach
// Only one entry is fine
* @return void
*/
public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+ // Add generic first
+ parent::addArrayToDataSet($dataSetInstance, $messageData);
+
// Add all ements
foreach ($this->messageDataElements as $key) {
// Is it there?
assert(isset($messageData[$key]));
// Add it
- $dataSetInstance->addCriteria('node_' . $key, $messageData[$key]);
+ $dataSetInstance->addCriteria($key, $messageData[$key]);
} // END - foreach
}
* @return void
*/
public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+ // Add generic first
+ parent::addArrayToDataSet($dataSetInstance, $messageData);
+
// Add all ements
foreach ($this->messageDataElements as $key) {
// Is it there?
* Add it, but remove any 'my-' prefixes as they are not used in
* database layer.
*/
- $dataSetInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);
+ $dataSetInstance->addCriteria(str_replace('my-', '', $key), $messageData[$key]);
} // END - foreach
}
* @return void
*/
public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+ // Add generic first
+ parent::addArrayToDataSet($dataSetInstance, $messageData);
+
// Debug message
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('ANSWER-HANDLER: messageData=' . print_r($messageData, true));
* Add it, but remove any 'my-' prefixes as they are not used in
* database layer.
*/
- $dataSetInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);
+ $dataSetInstance->addCriteria(str_replace('my-', '', $key), $messageData[$key]);
} // END - foreach
}
assert(isset($messageData[$key]));
// Add it
- $dataSetInstance->addCriteria('node_' . $key, $messageData[$key]);
+ $dataSetInstance->addCriteria($key, $messageData[$key]);
} // END - foreach
}
* @return void
*/
public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+ // Add generic first
+ parent::addArrayToDataSet($dataSetInstance, $messageData);
+
// Add all ements
foreach ($this->messageDataElements as $key) {
// Is it there?
assert(isset($messageData[$key]));
// Add it
- $dataSetInstance->addCriteria('node_' . $key, $messageData[$key]);
+ $dataSetInstance->addCriteria($key, $messageData[$key]);
} // END - foreach
}
* @throws UnsupportedOperationException If this method is called
*/
public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+ // Add generic first
+ parent::addArrayToDataSet($dataSetInstance, $messageData);
+
// Please don't call this method!
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}