Changes by spi

This commit is contained in:
Frank Schubert
2023-02-16 17:30:59 +01:00
parent 5ed09bd2d1
commit 36938051bd
118 changed files with 173537 additions and 0 deletions
@@ -0,0 +1,39 @@
<?php
class Devicemanufactor extends mfBaseModel
{
private $editor;
private $creator;
public function getProperty($name) {
if($this->$name == null) {
if(!$this->id) {
return null;
}
if($name == "creator") {
$this->creator = new User($this->create_by);
return $this->creator;
}
if($name == "editor") {
$this->editor = new User($this->edit_by);
return $this->editor;
}
$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;
}
}