]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/database/wrapper/class_NodeInformationDatabaseWrapper.php
node_type rewritten to 'mode' element from request
[hub.git] / application / hub / main / database / wrapper / class_NodeInformationDatabaseWrapper.php
index 0cab92fce65f63782676ec09097cd6c7aec9be9f..7dccdef85bb28b4b2db7a1ad9a4e63b816b45b2d 100644 (file)
@@ -69,10 +69,11 @@ class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
         * 'Registers' a new node id along with data provided in the node instance.
         * This may sound confusing but avoids double code very nicely...
         *
-        * @param       $nodeInstance   A node instance
+        * @param       $nodeInstance           A node instance
+        * @param       $requestInstance        An instance of a Requestable class
         * @return      void
         */
-       public function registerNodeId (BaseHubNode $nodeInstance) {
+       public function registerNodeId (BaseHubNode $nodeInstance, Requestable $requestInstance) {
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_NODE_INFORMATION));
 
@@ -80,7 +81,7 @@ class NodeInformationDatabaseWrapper extends BaseDatabaseWrapper {
                $dataSetInstance->setUniqueKey(self::DB_COLUMN_NODE_ID);
 
                // Add registration elements to the dataset
-               $nodeInstance->addElementsToDataSet($dataSetInstance);
+               $nodeInstance->addElementsToDataSet($dataSetInstance, $requestInstance);
 
                // "Insert" this request instance completely into the database
                $this->getDatabaseInstance()->queryInsertDataSet($dataSetInstance);