Files
thetool/application/PreordercampaignOperatorIsp/PreordercampaignOperatorIsp.php
2024-04-18 14:00:25 +02:00

30 lines
741 B
PHP

<?php
class PreordercampaignOperatorIsp extends mfBaseModel
{
private $isp;
public function getProperty($name) {
if($this->$name == null) {
if($name == "isp") {
$isp = mfValuecache::singleton()->getMfObject("Address", $this->isp_id);
if(!$isp) {
return null;
}
$this->isp = $isp;
return $this->isp;
}
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = mfValuecache::singleton()->getMfObject($classname, $this->$idfield);
if(!$this->$name) {
return null;
}
}
return $this->$name;
}
}