Loading module/StepStar/src/StepStar/Service/Tef/TefService.php +4 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,8 @@ class TefService /** * Transforme, à l'aide d'un fichier XSL, les fichiers XML placés dans un répertoire, pour produire les fichiers TEF. * * NB : ne requiert pas le module PHP SaxonC. * * @param string $inputDirPath * @param string $xslFilePath * @throws \StepStar\Exception\TefServiceException Loading Loading @@ -83,6 +85,8 @@ class TefService /** * Transforme, à l'aide d'un fichier XSL, le fichier XML spécifié, pour produire les fichiers TEF. * * ATTENTION : requiert le module PHP SaxonC (https://www.saxonica.com/download/c.xml). * * @param string $xmlFilePath * @param string $xslFilePath * @throws \StepStar\Exception\TefServiceException Loading module/StepStar/src/StepStar/Service/Xslt/XsltService.php +6 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,12 @@ class XsltService */ public function transformToFiles(string $thesesXmlFilepath) { if (! class_exists(SaxonProcessor::class)) { throw new \RuntimeException( "Le module PHP SaxonC est nécessaire pour cette opération (https://www.saxonica.com/download/c.xml)." ); } // il faut spécifier un fichier mais c'est son répertoire qui recevra les fichiers générés $outputFilepath = $this->outputDir . '/' . uniqid('saxonc_') . '.xml'; Loading Loading
module/StepStar/src/StepStar/Service/Tef/TefService.php +4 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,8 @@ class TefService /** * Transforme, à l'aide d'un fichier XSL, les fichiers XML placés dans un répertoire, pour produire les fichiers TEF. * * NB : ne requiert pas le module PHP SaxonC. * * @param string $inputDirPath * @param string $xslFilePath * @throws \StepStar\Exception\TefServiceException Loading Loading @@ -83,6 +85,8 @@ class TefService /** * Transforme, à l'aide d'un fichier XSL, le fichier XML spécifié, pour produire les fichiers TEF. * * ATTENTION : requiert le module PHP SaxonC (https://www.saxonica.com/download/c.xml). * * @param string $xmlFilePath * @param string $xslFilePath * @throws \StepStar\Exception\TefServiceException Loading
module/StepStar/src/StepStar/Service/Xslt/XsltService.php +6 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,12 @@ class XsltService */ public function transformToFiles(string $thesesXmlFilepath) { if (! class_exists(SaxonProcessor::class)) { throw new \RuntimeException( "Le module PHP SaxonC est nécessaire pour cette opération (https://www.saxonica.com/download/c.xml)." ); } // il faut spécifier un fichier mais c'est son répertoire qui recevra les fichiers générés $outputFilepath = $this->outputDir . '/' . uniqid('saxonc_') . '.xml'; Loading