X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fhub%2Fmain%2Fdatabase%2Fwrapper%2Fclass_NodeInformationDatabaseWrapper.php;h=7dccdef85bb28b4b2db7a1ad9a4e63b816b45b2d;hb=7a0d723bf2119162895f34ece6464571781d57de;hp=0cab92fce65f63782676ec09097cd6c7aec9be9f;hpb=2ff8af970256bc567ed29680780c4332cab05985;p=hub.git diff --git a/application/hub/main/database/wrapper/class_NodeInformationDatabaseWrapper.php b/application/hub/main/database/wrapper/class_NodeInformationDatabaseWrapper.php index 0cab92fce..7dccdef85 100644 --- a/application/hub/main/database/wrapper/class_NodeInformationDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/class_NodeInformationDatabaseWrapper.php @@ -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);