1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| if (is_file($this->filePath . '\\'. $this->xmlFile)) unlink($this->filePath . '\\'. $this->xmlFile);
if (is_file($this->filePath . '\\'. $this->htmFile)) unlink($this->filePath . '\\'. $this->htmFile);
$this->flgError = false ;
$this->libError = '' ;
$this->nbError = 0 ;
$this->nbOrder = 0;
$this->flgGenerateFile = false ; //Mis à vrai si au moins 1 commande à générer
$this->VerifFile();
if ($this->flgGenerateFile) {
if (!$this->TextToXml()) {
$xsldoc = domxml_xslt_stylesheet_file($this->filePath . '\\'. $this->xslFile);
$this->xmlDom = domxml_open_file($this->filePath . '\\'. $this->xmlFile);
$result = $xsldoc->process($this->xmlDom);
$xsldoc->result_dump_file($result,$this->filePath . '\\'. $this->htmFile);
}
}
//delete of temporary file
if (is_file($this->workFile)) unlink($this->workFile);
} |
Partager