Files
thetool/application/RimoWorkorder/RimoWorkorder.php
Frank Schubert 9f051b4cf3 OAID / Rimo Workorder update:
- 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
2023-08-09 09:02:44 +02:00

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;
}
}