]> git.mxchange.org Git - hub.git/commitdiff
We use these setter/getter
authorRoland Häder <roland@mxchange.org>
Fri, 28 May 2010 03:09:03 +0000 (03:09 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 May 2010 03:09:03 +0000 (03:09 +0000)
application/hub/main/lookup/peer/class_PeerStateLookupTable.php

index db1481f84a5b85310f0b50a8b4cab4495680370d..fcf78f64758c455d46a5f35728b7e2343d18b293 100644 (file)
@@ -45,7 +45,7 @@ class PeerStateLookupTable extends BaseLookupTable implements Lookupable {
                $wrapperInstance = ObjectFactory::createObjectByConfiguredName('peer_state_lookup_db_wrapper_class');
 
                // Set it for later re-use
-               $tableInstance->setDatabaseInstance($wrapperInstance);
+               $tableInstance->setWrapperInstance($wrapperInstance);
 
                // Return the prepared instance
                return $tableInstance;
@@ -59,7 +59,7 @@ class PeerStateLookupTable extends BaseLookupTable implements Lookupable {
         */
        public function isSenderNewPeer (array $packageData) {
                // Get our wrapper instance and ask for it
-               $isNewPeer = $this->getDatabaseInstance()->isSenderNewPeer($packageData);
+               $isNewPeer = $this->getWrapperInstance()->isSenderNewPeer($packageData);
 
                // Return it
                return $isNewPeer;