ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Executes the Import.
Manifest parser for ILIAS standard export files.
DataCollection dataset class.
$parser
Definition: BPMN2Parser.php:23
finalProcessing($a_mapping)
Called before finishing the import.
Xml importer class.
Class ilDataCollectionImporter.
$int