ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDataCollectionImporter Class Reference
+ Inheritance diagram for ilDataCollectionImporter:
+ Collaboration diagram for ilDataCollectionImporter:

Public Member Functions

 init ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 Executes the Import. More...
 
 finalProcessing (ilImportMapping $a_mapping)
 Called before finishing the import. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Static Public Member Functions

static getExcelCharForInteger (int $int)
 

Protected Attributes

ilDataCollectionDataSet $ds
 
- Protected Attributes inherited from ilXmlImporter
array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

Detailed Description

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

Member Function Documentation

◆ finalProcessing()

ilDataCollectionImporter::finalProcessing ( ilImportMapping  $a_mapping)

Called before finishing the import.

Parameters
ilImportMapping$a_mapping

Reimplemented from ilXmlImporter.

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

53 : void
54 {
55 $this->ds->beforeFinishImport($a_mapping);
56 }

◆ getExcelCharForInteger()

static ilDataCollectionImporter::getExcelCharForInteger ( int  $int)
static

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

58 : string
59 {
60 $char = "";
61 $rng = range("A", "Z");
62 while ($int > 0) {
63 $diff = ($int - 1) % 26;
64 $char = $rng[$diff] . $char;
65 $int -= $diff;
66 $int = (int) ($int / 26);
67 }
68
69 return $char;
70 }

References ILIAS\Repository\int().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ importXmlRepresentation()

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

Executes the Import.

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

Reimplemented from ilXmlImporter.

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

45 : void {
46 new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
47 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ init()

ilDataCollectionImporter::init ( )

Reimplemented from ilXmlImporter.

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

25 : void
26 {
27 $this->ds = new ilDataCollectionDataSet();
28 $this->ds->setDSPrefix("ds");
29 $this->ds->setImportDirectory($this->getImportDirectory());
30 }

References ilXmlImporter\getImportDirectory().

+ Here is the call graph for this function:

Field Documentation

◆ $ds

ilDataCollectionDataSet ilDataCollectionImporter::$ds
protected

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


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