Files
thetool/application/Pop/Pop.php
2021-06-29 22:58:11 +02:00

24 lines
471 B
PHP

<?php
class Pop extends mfBaseModel {
protected $forcestr = ['vlan_public', 'vlan_nat', 'vlan_ipv6'];
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;
}
}