Added Networksection

This commit is contained in:
Frank Schubert
2021-07-20 21:54:23 +02:00
parent a1f47267c8
commit aa624278b4
7 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
class Networksection extends mfBaseModel {
private $network;
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;
}
}