WIP GWR Umbau mit Netzgebiet und Adressstatus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user