|
| process (array $args, array $params) |
|
◆ process()
ilCertificateXlstProcess::process |
( |
array |
$args, |
|
|
array |
$params |
|
) |
| |
- Parameters
-
array{"/_xsl" | string, "/_xml": string} $args |
array<string,scalar> | $params |
Definition at line 27 of file class.ilCertificateXlstProcess.php.
27 : 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 }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
References $params.
The documentation for this class was generated from the following file: