WIP GWR Umbau mit Netzgebiet und Adressstatus

This commit is contained in:
Frank Schubert
2022-10-04 12:43:54 +02:00
parent 24840c04d1
commit 9db6ae59c3
12 changed files with 434 additions and 16 deletions

View File

@@ -4,12 +4,25 @@ class AddressDB_Importer_Csv {
private $db;
private $log;
private $input;
public function __construct() {
$this->db = FronkDB::singleton(ADDRESSDB_DBHOST, ADDRESSDB_DBUSER, ADDRESSDB_DBPASS, ADDRESSDB_DBNAME);
$this->log = mfLoghandler::singleton();
}
public function import($input) {
public function isValid($input) {
if(strlen($input) < 1024 && strpos($input, "\n") === false) {
$this->input = $input;
return true;
}
return false;
}
public function import() {
echo "importing...\n";exit;
$input = $this->input;
if(!$input) {
return false;
}