]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/database/wrapper/node/class_NodeInformationDatabaseWrapper.php
Introduced (currently not used as type-hints) new interfaces:
[hub.git] / application / hub / main / database / wrapper / node / class_NodeInformationDatabaseWrapper.php
index 52dc0ff1361cd6447fd5d57e4089e528ea03307a..86d14cece303d179f566f5c928a518fb9ec6241c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
+class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper implements NodeInformationWrapper {
        // Constants for database table names
        const DB_TABLE_NODE_INFORMATION = 'node_data';
 
@@ -57,15 +57,6 @@ class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
                return $wrapperInstance;
        }
 
-       /**
-        * Getter for index key
-        *
-        * @return      $indexKey       Index key
-        */
-       public final function getIndexKey () {
-               return $this->getDatabaseInstance()->getIndexKey();
-       }
-
        /**
         * 'Registers' a new node id along with data provided in the node instance.
         * This may sound confusing but avoids double code very nicely...
@@ -84,8 +75,8 @@ class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
                // Add registration elements to the dataset
                $nodeInstance->addElementsToDataSet($dataSetInstance, $requestInstance);
 
-               // "Insert" this request instance completely into the database
-               $this->getDatabaseInstance()->queryInsertDataSet($dataSetInstance);
+               // "Insert" this dataset instance completely into the database
+               $this->queryInsertDataSet($dataSetInstance);
        }
 
        /**
@@ -106,8 +97,8 @@ class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
                // Add registration elements to the dataset
                $nodeInstance->addElementsToDataSet($dataSetInstance, $requestInstance);
 
-               // "Insert" this request instance completely into the database
-               $this->getDatabaseInstance()->queryInsertDataSet($dataSetInstance);
+               // "Insert" this dataset instance completely into the database
+               $this->queryInsertDataSet($dataSetInstance);
        }
 }