ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
57 public static function getExcelCharForInteger($int) {
58 $char = "";
59 $rng = range("A", "Z");
60 while ($int > 0) {
61 $diff = $int % 26;
62 $char = $rng[$diff - 1] . $char;
63 $int -= $char;
64 $int /= 26;
65 }
66
67 return $char;
68 }
69}
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.