Added pipe-/linework enabled date and by
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user