ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilSkillImporter.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
28  protected ilSkillDataSet $ds;
30 
31  public function init(): void
32  {
33  $this->ds = new ilSkillDataSet();
34  $this->ds->setDSPrefix("ds");
35 
36  $this->config = $this->getImport()->getConfig("components/ILIAS/Skill");
37  $this->ds->setSkillTreeId($this->config->getSkillTreeId());
38  }
39 
43  public function importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping): void
44  {
45  $parser = new ilDataSetImportParser(
46  $a_entity,
47  $this->getSchemaVersion(),
48  $a_xml,
49  $this->ds,
50  $a_mapping
51  );
52  }
53 }
Skill 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)
ilImportConfig $config
Import configuration class parent class.
Xml importer class.
Importer class for skills.