ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

◆ getExcelCharForInteger()

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

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

References range.

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

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  }
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 38 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:23
+ Here is the call graph for this function:

◆ init()

ilDataCollectionImporter::init ( )

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

References ilXmlImporter\getImportDirectory().

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

Field Documentation

◆ $ds

ilDataCollectionImporter::$ds
protected

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


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