ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDataCollectionImporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
24
25 public function init(): void
26 {
27 $this->ds = new ilDataCollectionDataSet();
28 $this->ds->setDSPrefix("ds");
29 $this->ds->setImportDirectory($this->getImportDirectory());
30 }
31
40 public function importXmlRepresentation(
41 string $a_entity,
42 string $a_id,
43 string $a_xml,
44 ilImportMapping $a_mapping
45 ): void {
46 new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
47 }
48
53 public function finalProcessing(ilImportMapping $a_mapping): void
54 {
55 $this->ds->beforeFinishImport($a_mapping);
56 }
57
58 public static function getExcelCharForInteger(int $int): string
59 {
60 $char = "";
61 $rng = range("A", "Z");
62 while ($int > 0) {
63 $diff = ($int - 1) % 26;
64 $char = $rng[$diff] . $char;
65 $int -= $diff;
66 $int = (int) ($int / 26);
67 }
68
69 return $char;
70 }
71}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Xml importer class.