/**
* Save a whole object or parts of it to the database or local file
*
- * @param $object The object we shall save
+ * @param $object The object we shall save
* @return void
*/
- public function saveObject ($object) {
+ public function saveObject (FrameworkInterface $object) {
// Connect to the database
$this->dbLayer->connectToDatabase();
* Set a limitation for the saving process. This shall be done before
* saveObject() is called else saveObject() shall save the whole object.
*
- * @param $limitInstance An instance of ObjectLimits which contains
- * elements we shall exclusivly include in
- * saving process
+ * @param $limitInstance An instance of ObjectLimits which contains
+ * elements we shall exclusivly include in
+ * saving process
* @return void
*/
public function limitObject (ObjectLimits $limitInstance) {
$exceptionInstance = $this->dbLayer->getLastException();
return $exceptionInstance;
}
+
+ /**
+ * "Inserts" a data set instance into a local file database folder
+ *
+ * @param $dataSetInstance A storeable data set
+ * @return void
+ */
+ public function insertDataSet (StoreableCriteria $dataSetInstance) {
+ // Connect to the database
+ $this->dbLayer->connectToDatabase();
+
+ // Ask the database layer
+ $this->dbLayer->insertDataSet($requestInstance);
+ }
}
// [EOF]