Files
thetool/application/PreordernotificationFile/PreordernotificationFile.php
2023-01-26 19:24:35 +01:00

28 lines
690 B
PHP

<?php
class PreordernotificationFile extends mfBaseModel {
private $file;
private $preordernotification;
public function getProperty($name) {
if($this->$name == null) {
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = mfValuecache::singleton()->get("mfObjectmodel-$name-".$this->$idfield);
if(!$this->$name) {
$this->$name = new $classname($this->$idfield);
}
if($this->$name->id) {
mfValuecache::singleton()->set("mfObjectmodel-$name-".$this->$name->id, $this->$name);
return $this->$name;
} else {
return null;
}
}
return $this->$name;
}
}