Added Voiceplan, Admin IVT product matcher and Voicenumber update

updates number in ContractConfig
This commit is contained in:
Frank Schubert
2023-05-04 15:01:28 +02:00
parent a2b519f6f3
commit 8214acd3e9
42 changed files with 1975 additions and 207 deletions

View File

@@ -0,0 +1,39 @@
<?php
class VoiceplanFile extends mfBaseModel {
private $file;
private $creator;
private $editor;
public function getProperty($name) {
if($this->$name == null) {
if(!$this->id) {
return null;
}
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);
if($this->$name->id) {
return $this->$name;
} else {
return null;
}
}
return $this->$name;
}
}