]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/user/class_ShipSimuBaseUser.php
Moved database columns as constants in wrapper classes
[shipsimu.git] / application / ship-simu / main / user / class_ShipSimuBaseUser.php
index ffc4c6edc7eefd59f8082ccbe98f158f4a4590ed..5f61809a5451519e7ec93b6f3b23f6389db4b6f4 100644 (file)
@@ -43,15 +43,15 @@ class ShipSimuBaseUser extends BaseUser implements Registerable, Updateable {
                $maxFound = $this->getConfigInstance()->getConfigEntry('max_allowed_companies_found');
 
                // Now get a search criteria and set the user's name as criteria
-               $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
-               $criteriaInstance->addCriteria(UserDatabaseWrapper::DB_COLUMN_USERNAME, $this->getUserName());
-               $criteriaInstance->setLimit($maxFound);
+               $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
+               $searchInstance->addCriteria(UserDatabaseWrapper::DB_COLUMN_USERNAME, $this->getUserName());
+               $searchInstance->setLimit($maxFound);
 
                // Get a company wrapper
                $wrapperInstance = ObjectFactory::createObjectByConfiguredName('company_db_wrapper_class');
 
                // Do the count-select by criteria
-               $totalRows = $wrapperInstance->doSelectCountByCriteria($criteriaInstance);
+               $totalRows = $wrapperInstance->doSelectCountByCriteria($searchInstance);
 
                // Does the user have reached maximum?
                $reached = ($totalRows >= $maxFound);