ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCertificateXlstProcess.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
27 public function process(array $args, array $params): string
28 {
29 $processor = new XSLTProcessor();
30
31 $xslt_domdoc = new DomDocument();
32 $xslt_domdoc->loadXML($args['/_xsl']);
33 $processor->importStyleSheet($xslt_domdoc);
34
35 foreach ($params as $key => $value) {
36 $processor->setParameter('', $key, (string) $value);
37 }
38
39 $xml_domdoc = new DomDocument();
40 $xml_domdoc->loadXML($args['/_xml']);
41
42 return $processor->transformToXML($xml_domdoc);
43 }
44}
process(array $args, array $params)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31