ILIAS  release_8 Revision v8.24
class.ilDataCollectionImporter.php
Go to the documentation of this file.
1<?php
2
20{
22
23 public function init(): void
24 {
25 $this->ds = new ilDataCollectionDataSet();
26 $this->ds->setDSPrefix("ds");
27 $this->ds->setImportDirectory($this->getImportDirectory());
28 }
29
38 public function importXmlRepresentation(
39 string $a_entity,
40 string $a_id,
41 string $a_xml,
42 ilImportMapping $a_mapping
43 ): void {
44 $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
45 }
46
51 public function finalProcessing(ilImportMapping $a_mapping): void
52 {
53 $this->ds->beforeFinishImport($a_mapping);
54 }
55
56 public static function getExcelCharForInteger(int $int): string
57 {
58 $char = "";
59 $rng = range("A", "Z");
60 while ($int > 0) {
61 $diff = ($int - 1) % 26;
62 $char = $rng[$diff] . $char;
63 $int -= $diff;
64 $int = (int) ($int / 26);
65 }
66
67 return $char;
68 }
69}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
finalProcessing(ilImportMapping $a_mapping)
Called before finishing the import.
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
Executes the Import.
Manifest parser for ILIAS standard export files.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...