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