Added pipe-/linework enabled date and by

This commit is contained in:
Frank Schubert
2022-02-08 19:58:20 +01:00
parent 6128de17e1
commit de9588b85f
7 changed files with 58 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ class Building extends mfBaseModel {
private $terminations;
private $workflowitems;
private $files;
private $pipework_enabler;
public function getAddress($singelLine = false) {
if(!$this->id) {
@@ -161,6 +162,11 @@ class Building extends mfBaseModel {
return $this->files;
}
if($name == "pipework_enabler") {
$this->pipework_enabler = new User($this->pipework_enabled_by);
return $this->pipework_enabler;
}
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = new $classname($this->$idfield);