Added pipe-/linework enabled date and by
This commit is contained in:
@@ -10,10 +10,12 @@ class Termination extends mfBaseModel {
|
||||
private $cpeprovisioning;
|
||||
private $files;
|
||||
private $patching;
|
||||
private $linework_enabler;
|
||||
private $creator;
|
||||
private $editor;
|
||||
|
||||
|
||||
|
||||
public function getAddress($singelLine = false) {
|
||||
if(!$this->id) {
|
||||
return false;
|
||||
@@ -195,6 +197,21 @@ class Termination extends mfBaseModel {
|
||||
return $this->cpeprovisioning;
|
||||
}
|
||||
|
||||
if($name == "linework_enabler") {
|
||||
$this->linework_enabler = new User($this->linework_enabled_by);
|
||||
return $this->linework_enabler;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user