ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 require_once('./Services/Export/classes/class.ilXmlImporter.php');
5 require_once('class.ilDataCollectionDataSet.php');
6 require_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
7 
15 
19  protected $ds;
20 
21 
22  public function init() {
23  $this->ds = new ilDataCollectionDataSet();
24  $this->ds->setDSPrefix("ds");
25  $this->ds->setImportDirectory($this->getImportDirectory());
26  }
27 
28 
39  public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping) {
40  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
41  }
42 
43 
49  public function finalProcessing($a_mapping) {
50  $this->ds->beforeFinishImport($a_mapping);
51  }
52 
57  public static function getExcelCharForInteger($int) {
58  $char = "";
59  $rng = range("A", "Z");
60  while ($int > 0) {
61  $diff = $int % 26;
62  $char = $rng[$diff - 1] . $char;
63  $int -= $char;
64  $int /= 26;
65  }
66 
67  return $char;
68  }
69 }
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:24
finalProcessing($a_mapping)
Called before finishing the import.
Xml importer class.
Class ilDataCollectionImporter.