addressdb import scripts

This commit is contained in:
Frank Schubert
2022-11-17 13:53:36 +01:00
parent 808f104ae8
commit e354dea9e8
9 changed files with 545 additions and 91 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/php
<?php
//require 'vendor/autoload.php';
require("../config/config.php");
define('FRONKDB_SQLDEBUG',false);
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
require_once(LIBDIR."/mvcfronk/mfRouter/mfRouter.php");
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseModel.php");
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseController.php");
$me = new User(1);
$filename = BASEDIR."/scripts/import/agwr_premstaetten_sample_v2.csv";
$adb = new AddressDB();
$adb->import($filename);