Files
thetool/application/Networksection/Networksection.php
2021-07-20 21:54:23 +02:00

22 lines
419 B
PHP

<?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;
}
}