Signed-off-by: Roland Häder <roland@mxchange.org>
* @throws SqlException If an SQL error occurs
*/
function queryUpdateDataSet (StoreableCriteria $dataSetInstance);
+
+ /**
+ * Removes non-public data from given array.
+ *
+ * @param $data An array with possible non-public data that needs to be removed.
+ * @return $data A cleaned up array with only public data.
+ */
+ function removeNonPublicDataFromArray (array $data);
}
// [EOF]
protected final function resetLastException () {
$this->lastException = NULL;
}
+
+ /**
+ * Removes non-public data from given array.
+ *
+ * @param $data An array with possible non-public data that needs to be removed.
+ * @return $data A cleaned up array with only public data.
+ */
+ public abstract function removeNonPublicDataFromArray(array $data);
}
// [EOF]
// Return the column
return $primaryKey;
}
+
+ /**
+ * Removes non-public data from given array.
+ *
+ * @param $data An array with possible non-public data that needs to be removed.
+ * @return $data A cleaned up array with only public data.
+ * @todo Add more generic non-public data for removal
+ */
+ public function removeNonPublicDataFromArray (array $data) {
+ // Remove '__idx'
+ unset($data[$this->indexKey]);
+
+ // Return it
+ return $data;
+ }
}
// [EOF]