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

@@ -40,6 +40,29 @@ class File extends mfBaseModel {
return false;
}
public function getFullPath() {
if(!is_numeric($this->id) || $this->id < 1) {
throw new Exception("File not found", 4040);
}
$filename = $this->store_filename;
$path = MFUPLOAD_FILE_SAVE_PATH;
$path .= ($this->subfolder) ? "/".$this->subfolder : "";
$path .= "/$filename";
if(!file_exists($path)) {
throw new Exception("File not found", 4041);
}
return $path;
}
public function getContents() {
$outname = $this->getFullPath();
return file_get_contents($outname);
}
public function getProperty($name) {
if($this->$name == null) {