customer_id); } public function getProcessingFilePath($file) { if(!$this->folder) throw new Exception("Template processing folder not set."); $folder_path = ROOT_DIR . "/template_processing/" . $this->folder; if(!file_exists($folder_path)) throw new Exception("Template processing folder does not exist."); $file_path = $folder_path . "/" . $file; if(!file_exists($file_path)) throw new Exception("Template processing file does not exist."); return $file_path; } public function renderBeforeTestForm() { $json = json_decode($this->json); $fields = $json->beforeTest; ?>
json); $fields = $json->duringTest; ?>