Added netzgebiet border polygon

This commit is contained in:
Frank Schubert
2024-02-09 17:51:34 +01:00
parent 4babf202a6
commit 65c23a30c2
5 changed files with 81 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ class Network extends mfBaseModel {
private $roles;
private $sections;
private $buildings;
private $adb_netzgebiet;
public function getTypeAddresses($search_type) {
@@ -139,6 +140,17 @@ class Network extends mfBaseModel {
return $this->buildings;
}
if($name == "adb_netzgebiet") {
if(!$this->adb_netzgebiet_id) {
return null;
}
$this->adb_netzgebiet = new ADBNetzgebiet($this->adb_netzgebiet_id);
if(!$this->adb_netzgebiet->id) {
return null;
}
return $this->adb_netzgebiet;
}
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = new $classname($this->$idfield);