Added netzgebiet border polygon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user