Switched Preorder building source to AddressDB
This commit is contained in:
@@ -5,6 +5,8 @@ class Preorder extends mfBaseModel {
|
||||
private $campaign;
|
||||
private $partner;
|
||||
private $building;
|
||||
private $adb_hausnummer;
|
||||
private $adb_wohneinheit;
|
||||
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
@@ -36,6 +38,17 @@ class Preorder extends mfBaseModel {
|
||||
return $this->building;
|
||||
}
|
||||
|
||||
if($name == "adb_hausnummer") {
|
||||
$this->adb_hausnummer = new ADBHausnummer($this->adb_hausnummer_id);
|
||||
return $this->adb_hausnummer;
|
||||
}
|
||||
|
||||
if($name == "adb_wohneinheit") {
|
||||
$this->adb_wohneinheit = new ADBWohneinheit($this->adb_wohneinheit_id);
|
||||
return $this->adb_wohneinheit;
|
||||
}
|
||||
|
||||
|
||||
if($name == "creator") {
|
||||
$user = mfValuecache::singleton()->get("Worker-id-".$this->create_by);
|
||||
if($user) {
|
||||
|
||||
Reference in New Issue
Block a user