ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 
12 {
13 
17  protected $ds;
18 
19 
20  public function init()
21  {
22  $this->ds = new ilDataCollectionDataSet();
23  $this->ds->setDSPrefix("ds");
24  $this->ds->setImportDirectory($this->getImportDirectory());
25  }
26 
27 
38  public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
39  {
40  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
41  }
42 
43 
49  public function finalProcessing($a_mapping)
50  {
51  $this->ds->beforeFinishImport($a_mapping);
52  }
53 
58  public static function getExcelCharForInteger($int)
59  {
60  $char = "";
61  $rng = range("A", "Z");
62  while ($int > 0) {
63  $diff = $int % 26;
64  $char = $rng[$diff - 1] . $char;
65  $int -= $char;
66  $int /= 26;
67  }
68 
69  return $char;
70  }
71 }
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Executes the Import.
Resolve range
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.