ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDataCollectionImporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Member Function Documentation

◆ finalProcessing()

ilDataCollectionImporter::finalProcessing ( ilImportMapping  $a_mapping)

Called before finishing the import.

Parameters
ilImportMapping$a_mapping

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

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

◆ getExcelCharForInteger()

static ilDataCollectionImporter::getExcelCharForInteger ( int  $int)
static

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

References ILIAS\Repository\int().

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

56  : string
57  {
58  $char = "";
59  $rng = range("A", "Z");
60  while ($int > 0) {
61  $diff = ($int - 1) % 26;
62  $char = $rng[$diff] . $char;
63  $int -= $diff;
64  $int = (int) ($int / 26);
65  }
66 
67  return $char;
68  }
+ 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

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

References ilXmlImporter\getSchemaVersion().

43  : void {
44  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(), $a_xml, $this->ds, $a_mapping);
45  }
Manifest parser for ILIAS standard export files.
+ Here is the call graph for this function:

◆ init()

ilDataCollectionImporter::init ( )

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

References ilXmlImporter\getImportDirectory().

23  : void
24  {
25  $this->ds = new ilDataCollectionDataSet();
26  $this->ds->setDSPrefix("ds");
27  $this->ds->setImportDirectory($this->getImportDirectory());
28  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ $ds

ilDataCollectionDataSet ilDataCollectionImporter::$ds
protected

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


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