ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSkillImporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Export/classes/class.ilXmlImporter.php");
5
14{
15
19 function init()
20 {
21 include_once("./Services/Skill/classes/class.ilSkillDataSet.php");
22 $this->ds = new ilSkillDataSet();
23 $this->ds->setDSPrefix("ds");
24
25 /*$this->config = $this->getImport()->getConfig("Modules/MediaPool");
26 if ($this->config->getTranslationImportMode())
27 {
28 $this->ds->setTranslationImportMode(
29 $this->config->getTranslationLM(),
30 $this->config->getTranslationLang());
31 $cop_config = $this->getImport()->getConfig("Services/COPage");
32 $cop_config->setUpdateIfExists(true);
33 $cop_config->setForceLanguage($this->config->getTranslationLang());
34 $cop_config->setReuseOriginallyExportedMedia(true);
35 $cop_config->setSkipInternalLinkResolve(true);
36
37 $mob_config = $this->getImport()->getConfig("Services/MediaObjects");
38 $mob_config->setUsePreviousImportIds(true);
39 }*/
40
41 }
42
43
50 function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
51 {
52 include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
53 $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
54 $a_xml, $this->ds, $a_mapping);
55 }
56
62 function finalProcessing($a_mapping)
63 {
64 //$pg_map = $a_mapping->getMappingsOfEntity("Modules/MediaPool", "pg");
65
66 }
67
68}
69
70?>
$parser
Definition: BPMN2Parser.php:24
An exception for terminatinating execution or to throw for unit testing.
Manifest parser for ILIAS standard export files.
Skill Data set class.
Importer class for skills.
init()
Initialisation.
finalProcessing($a_mapping)
Final processing.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Xml importer class.
getSchemaVersion()
Get schema version.