ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilCertificateXlstProcess.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
process(array $args, array $params)