ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilHelpImporter.php
Go to the documentation of this file.
1<?php
2
25{
26 protected ilHelpDataSet $ds;
27 protected ?ilHelpImportConfig $config = null;
28
29 public function init(): void
30 {
31 $this->ds = new ilHelpDataSet();
32 $this->ds->setDSPrefix("ds");
33
35 $config = $this->getImport()->getConfig("components/ILIAS/Help");
36 $this->config = $config;
37 $module_id = $this->config->getModuleId();
38 if ($module_id > 0) {
39 $this->getImport()->getMapping()->addMapping('components/ILIAS/Help', 'help_module', 0, $module_id);
40 }
41 }
42
43 public function importXmlRepresentation(
44 string $a_entity,
45 string $a_id,
46 string $a_xml,
47 ilImportMapping $a_mapping
48 ): void {
49 $parser = new ilDataSetImportParser(
50 $a_entity,
51 $this->getSchemaVersion(),
52 $a_xml,
53 $this->ds,
54 $a_mapping
55 );
56 }
57}
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...
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)
ilHelpImportConfig $config
Xml importer class.