// Get max allowed companies to found
$maxFound = $this->getConfigInstance()->readConfig('max_allowed_companies_found');
- // Get a company wrapper
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('company_db_wrapper_class');
-
// 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);
+ // Get a company wrapper
+ $wrapperInstance = ObjectFactory::createObjectByConfiguredName('company_db_wrapper_class');
+
// Do the count-select by criteria
$totalRows = $wrapperInstance->doSelectCountByCriteria($criteriaInstance);
} // END - if
// Just forward this request to the user points class
- $hasRequired = $pointsInstance->ifUserHasRequiredPoints ($action);
+ $hasRequired = $pointsInstance->ifUserHasRequiredPoints($action);
// Return the result
return $hasRequired;
*
* @return $bankLends Wether the money bank is able to lend money
*/
- public function ifUserAllowTakeCreditsFromMoneyBank () {
+ public function ifUserAllowedTakeCreditsFromMoneyBank () {
// Per default the money bank cannot pay
$bankLends = false;
} // END - if
// Does the money bank lend more money?
+ /** UNFINISHED PART!
if ($bankInstance->ifBankLendsMoreMoney()) {
// Okay, that they will do
$bankLends = true;
} // END - if
+ */
// Return result
return $bankLends;
} // END - if
// Now check if the user has maximum credits
+ /** UNFINISHED PART!
if ($bankInstance->ifUserHasMaxCredits()) {
// Yes, he does!
$hasMaxCredits = true;
} // END - if
+ */
// Return the result
return $hasMaxCredits;