ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStyleImporter.php
Go to the documentation of this file.
1<?php
2
25{
30 protected $log;
31
32 public function init(): void
33 {
34 $this->log = ilLoggerFactory::getLogger('styl');
35
36 $this->ds = new ilStyleDataSet();
37 $this->ds->setDSPrefix("ds");
38 $this->ds->setImportDirectory($this->getImportDirectory());
39
40 $this->log->debug("initialized");
41 }
42
43 public function importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping): void
44 {
45 $this->log->debug("import xml " . $a_entity);
46 $parser = new ilDataSetImportParser(
47 $a_entity,
48 $this->getSchemaVersion(),
49 $a_xml,
50 $this->ds,
51 $a_mapping
52 );
53 }
54}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getLogger(string $a_component_id)
Get component logger.
Style Data set class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
Xml importer class.