Added Voiceplan, Admin IVT product matcher and Voicenumber update
updates number in ContractConfig
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user