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