ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilDataCollectionImporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once('./Services/Export/classes/class.ilXmlImporter.php');
5require_once('class.ilDataCollectionDataSet.php');
6require_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
7
15
19 protected $ds;
20
21
22 public function init() {
23 $this->ds = new ilDataCollectionDataSet();
24 $this->ds->setDSPrefix("ds");
25 $this->ds->setImportDirectory($this->getImportDirectory());
26 }
27
28
39 public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping) {
40 $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
41 }
42
43
49 public function finalProcessing($a_mapping) {
50 $this->ds->beforeFinishImport($a_mapping);
51 }
52}
DataCollection dataset class.
Class ilDataCollectionImporter.
finalProcessing($a_mapping)
Called before finishing the import.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Executes the Import.
Manifest parser for ILIAS standard export files.
Xml importer class.
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.