ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilStyleImporter.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  protected ilStyleDataSet $ds;
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 }
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...
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.
Xml importer class.