Added Role view to Network

This commit is contained in:
Frank Schubert
2021-07-01 20:56:41 +02:00
parent e70c714b60
commit 72c67c9d35
12 changed files with 258 additions and 26 deletions

View File

@@ -0,0 +1,23 @@
<?php
class NetworkAddress extends mfBaseModel {
private $network;
private $address;
public function getProperty($name) {
if($this->$name == null) {
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = new $classname($this->$idfield);
if($this->$name->id) {
return $this->$name;
} else {
return null;
}
}
return $this->$name;
}
}