ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilDataCollectionImporter Class Reference

Class ilDataCollectionImporter. More...

+ Inheritance diagram for ilDataCollectionImporter:
+ Collaboration diagram for ilDataCollectionImporter:

Public Member Functions

 init ()
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Executes the Import. More...
 
 finalProcessing ($a_mapping)
 Called before finishing the import. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Static Public Member Functions

static getExcelCharForInteger ($int)
 

Protected Attributes

 $ds
 
- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Member Function Documentation

◆ finalProcessing()

ilDataCollectionImporter::finalProcessing (   $a_mapping)

Called before finishing the import.

Parameters
$a_mapping

Definition at line 49 of file class.ilDataCollectionImporter.php.

49  {
50  $this->ds->beforeFinishImport($a_mapping);
51  }

◆ getExcelCharForInteger()

static ilDataCollectionImporter::getExcelCharForInteger (   $int)
static
Parameters
$int
Returns
string

Definition at line 57 of file class.ilDataCollectionImporter.php.

References range.

Referenced by ilDclContentImporter\getImportFieldsFromTitles(), ilDclReferenceRecordFieldModel\getValueFromExcel(), ilDclNReferenceRecordFieldModel\getValueFromExcel(), and ilDclContentImporter\import().

57  {
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  }
Resolve range
+ Here is the caller graph for this function:

◆ importXmlRepresentation()

ilDataCollectionImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Executes the Import.

Parameters
$a_entity
$a_id
$a_xml
$a_mapping
Returns
string|void

Definition at line 39 of file class.ilDataCollectionImporter.php.

References $parser, and ilXmlImporter\getSchemaVersion().

39  {
40  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
41  }
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
$parser
Definition: BPMN2Parser.php:24
+ Here is the call graph for this function:

◆ init()

ilDataCollectionImporter::init ( )

Definition at line 22 of file class.ilDataCollectionImporter.php.

References ilXmlImporter\getImportDirectory().

22  {
23  $this->ds = new ilDataCollectionDataSet();
24  $this->ds->setDSPrefix("ds");
25  $this->ds->setImportDirectory($this->getImportDirectory());
26  }
getImportDirectory()
Get import directory.
DataCollection dataset class.
+ Here is the call graph for this function:

Field Documentation

◆ $ds

ilDataCollectionImporter::$ds
protected

Definition at line 19 of file class.ilDataCollectionImporter.php.


The documentation for this class was generated from the following file: