Ejemplo n.º 1
0
 public function executeGetPdfFileFor(\Library\HttpRequest $rq)
 {
     // Init result
     $result = $this->InitResponseWS();
     $form_id = intval($this->dataPost["form_id"]);
     $form_type = $this->dataPost["form_type"];
     $pdfPathForFancyBox = \Applications\PMTool\Helpers\FormHelper::getPDFFormForFancyBox($this, $form_type, $form_id);
     $form_found = false;
     if (trim($pdfPathForFancyBox) != '') {
         $form_found = true;
         $result["form_path"] = $pdfPathForFancyBox;
     }
     $this->SendResponseWS($result, array("resx_file" => \Applications\PMTool\Resources\Enums\ResxFileNameKeys::Form, "resx_key" => $this->action(), "step" => $form_found ? "success" : "error"));
 }