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
+25 -1
View File
@@ -13,7 +13,31 @@ class ADBHausnummer extends mfBaseModel {
//$this->strasse = new ADBStrasse($this->strasse_id);
//$this->plz = new ADBPlz($this->plz_id);
}
/*
public static function parseAddresszusatz($text) {
$zusatz = "";
$text = trim($text);
if(!$text) return $data;
$text = " ".$text;
$m = [];
if(preg_match('/((?:gesch(?:ae|ä)ft|betrieb und wohnungen|paketlogistik|cafe|pavillon|pfarrheim|[^ ]*haus|[^ ]*geb(?:ae|ä)ude|[^ ]*halle)(?:\s+[a-z0-9]+)?)/i', $text, $m)) {
$zusatz = $m[1];
$text = str_replace($m[0], "", $text);
}
$text = trim(preg_replace('/\s{2,}/', "", $text));
if($text) {
$data['zusatz'] = $text;
}
return $data;
}*/
public function getProperty($name) {
if($this->$name == null) {