Features Netzbau-> Dateiablage und Stammdaten->Pops hinzugefügt

This commit is contained in:
Spitzer_Daniel
2023-02-16 15:44:19 +01:00
parent c5d36132d2
commit cf92596ebf
24 changed files with 2371 additions and 23 deletions

View File

@@ -0,0 +1,41 @@
<?php
class Device extends mfBaseModel
{
private $editor;
private $creator;
private $devicetype;
private $pop;
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;
}
}