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;
 }
Exemplo n.º 2
0
$dbContactArray = new dbKITcontactArrayCfg();
if ($dbContactArray->sqlTableExists()) {
    if (!$dbContactArray->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbContactArray->getError());
    }
}
$dbContactAddress = new dbKITcontactAddress();
if ($dbContactAddress->sqlTableExists()) {
    if (!$dbContactAddress->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbContactAddress->getError());
    }
}
$dbCountries = new dbKITcountries();
if ($dbCountries->sqlTableExists()) {
    if (!$dbCountries->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbCountries->getError());
    }
}
$dbMemos = new dbKITmemos();
if ($dbMemos->sqlTableExists()) {
    if (!$dbMemos->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbMemos->getError());
    }
}
$dbKITprotocol = new dbKITprotocol();
if ($dbKITprotocol->sqlTableExists()) {
    if (!$dbKITprotocol->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbKITprotocol->getError());
    }
}
$dbKITprovider = new dbKITprovider();