// Get max allowed companies to found
$maxFound = $this->getConfigInstance()->readConfig('max_allowed_companies_found');
// Get max allowed companies to found
$maxFound = $this->getConfigInstance()->readConfig('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);
// 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);
// Do the count-select by criteria
$totalRows = $wrapperInstance->doSelectCountByCriteria($criteriaInstance);
// Do the count-select by criteria
$totalRows = $wrapperInstance->doSelectCountByCriteria($criteriaInstance);
if ($bankInstance->ifBankLendsMoreMoney()) {
// Okay, that they will do
$bankLends = true;
} // END - if
if ($bankInstance->ifBankLendsMoreMoney()) {
// Okay, that they will do
$bankLends = true;
} // END - if