ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilDataCollectionImporter.php
Go to the documentation of this file.
1 <?php
2 
20 declare(strict_types=1);
21 
23 {
25 
26  public function init(): void
27  {
28  $this->ds = new ilDataCollectionDataSet();
29  $this->ds->setDSPrefix("ds");
30  $this->ds->setImportDirectory($this->getImportDirectory());
31  }
32 
41  public function importXmlRepresentation(
42  string $a_entity,
43  string $a_id,
44  string $a_xml,
45  ilImportMapping $a_mapping
46  ): void {
47  new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
48  }
49 
54  public function finalProcessing(ilImportMapping $a_mapping): void
55  {
56  $this->ds->beforeFinishImport($a_mapping);
57  }
58 
59  public static function getExcelCharForInteger(int $int): string
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 }
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...
Manifest parser for ILIAS standard export files.
finalProcessing(ilImportMapping $a_mapping)
Called before finishing the import.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...