]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/middleware/database/class_DatabaseConnection.php
CAPTCHA now works in registration form
[shipsimu.git] / inc / classes / middleware / database / class_DatabaseConnection.php
index d5661d20ddb88e5c1a1027cab0462004fdecf81d..7a9300f1615718035f928730af2fb6bfd85f4e7a 100644 (file)
@@ -6,7 +6,7 @@
  * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -165,6 +165,20 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Re
                // Ask the database layer
                $this->dbLayer->queryInsertDataSet($dataSetInstance);
        }
+
+       /**
+        * "Updates" a data set instance with a database layer
+        *
+        * @param       $dataSetInstance        A storeable data set
+        * @return      void
+        */
+       public function queryUpdateDataSet (StoreableCriteria $dataSetInstance) {
+               // Connect to the database
+               $this->dbLayer->connectToDatabase();
+
+               // Ask the database layer
+               $this->dbLayer->queryUpdateDataSet($dataSetInstance);
+       }
 }
 
 // [EOF]