$searchInstance->addCriteria(NodeInformationDatabaseWrapper::DB_COLUMN_NODE_TYPE, $this->getRequestInstance()->getRequestElement('mode'));
$searchInstance->setLimit(1);
+ // Remember it for later usage
+ $this->setSearchInstance($searchInstance);
+
// Get a random string
$randomString = $this->generateRamdomString(255);
* "tables". This allows a smooth update for the underlaying
* database table.
*/
- $this->generatePrivateKeyAndHash($searchInstance);
+ $this->generatePrivateKeyAndHash($this->getSearchInstance());
} else {
// Get the node id from result and set it
$this->setPrivateKey(base64_decode($this->getField(NodeInformationDatabaseWrapper::DB_COLUMN_PRIVATE_KEY)));
* Generate it in a private method (no confusion with 'private
* method access' and 'private key' here! ;-)).
*/
- $this->generatePrivateKeyAndHash($searchInstance);
+ $this->generatePrivateKeyAndHash($this->getSearchInstance());
}
}