- OAIDs are now auto assigned to preorders/wohneinheiten on save - OAIDs can be exported to rimo via Preorder Admin functions - Preorder admin function createWorkorder automatically creates, exports and assigns OAIDs
33 lines
679 B
PHP
33 lines
679 B
PHP
<?php
|
|
|
|
class RimoWorkorder extends mfBaseModel {
|
|
private $adb_wohneinheit;
|
|
private $termination;
|
|
|
|
|
|
public function getProperty($name) {
|
|
if($this->$name == null) {
|
|
|
|
if(!$this->id) {
|
|
return null;
|
|
}
|
|
|
|
if($name == "adb_wohneinheit") {
|
|
$this->adb_wohneinheit = new ADBWohneinheit($this->adb_wohneinheit_id);
|
|
return $this->adb_wohneinheit;
|
|
}
|
|
|
|
$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;
|
|
}
|
|
} |