ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 public 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
49 public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
50 {
51 include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
53 $a_entity,
54 $this->getSchemaVersion(),
55 $a_xml,
56 $this->ds,
57 $a_mapping
58 );
59 }
60
66 public function finalProcessing($a_mapping)
67 {
68 //$pg_map = $a_mapping->getMappingsOfEntity("Modules/MediaPool", "pg");
69 }
70}
$parser
Definition: BPMN2Parser.php:23
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.