◆ __construct()
ILIAS\COPage\Xsl\XslManager::__construct |
( |
| ) |
|
◆ process()
ILIAS\COPage\Xsl\XslManager::process |
( |
string |
$xml, |
|
|
array |
$params |
|
) |
| |
Definition at line 32 of file XslManager.php.
36 $xslt = new \XSLTProcessor();
37 $xsl = file_get_contents(ILIAS_ABSOLUTE_PATH .
"/components/ILIAS/COPage/xsl/page.xsl");
38 $xslt_domdoc = new \DomDocument();
39 $xslt_domdoc->loadXML($xsl);
40 $xslt->importStylesheet($xslt_domdoc);
41 foreach (
$params as $key => $value) {
42 $xslt->setParameter(
"", $key, (
string) $value);
44 $xml_domdoc = new \DomDocument();
45 $xml_domdoc->loadXML($xml);
47 $result = $xslt->transformToXml($xml_domdoc);
49 return (
string) $result;
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
The documentation for this class was generated from the following file: