public function initArrays() { $dbCountries = new dbKITcountries(); $where = array(); $countries = array(); if (!$dbCountries->sqlSelectRecord($where, $countries)) { $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $dbCountries->getError())); return false; } $this->country_array = array(-1 => ''); foreach ($countries as $country) { // $this->country_array[$country[dbKITcountries::field_land_kfz]] = utf8_decode($country[dbKITcountries::field_land_name]); $this->country_array[$country[dbKITcountries::field_land_kfz]] = $country[dbKITcountries::field_land_name]; } return true; }