ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
11{
12
16 protected $ds;
17
18
19 public function init()
20 {
21 $this->ds = new ilDataCollectionDataSet();
22 $this->ds->setDSPrefix("ds");
23 $this->ds->setImportDirectory($this->getImportDirectory());
24 }
25
26
37 public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
38 {
39 $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
40 }
41
42
48 public function finalProcessing($a_mapping)
49 {
50 $this->ds->beforeFinishImport($a_mapping);
51 }
52
53
59 public static function getExcelCharForInteger($int)
60 {
61 $char = "";
62 $rng = range("A", "Z");
63 while ($int > 0) {
64 $diff = ($int-1) % 26;
65 $char = $rng[$diff] . $char;
66 $int -= $diff;
67 $int = (int) ($int / 26);
68 }
69
70 return $char;
71 }
72}
$parser
Definition: BPMN2Parser.php:23
An exception for terminatinating execution or to throw for unit testing.
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.