ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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

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.

References ILIAS\Repository\int().

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

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  }
+ 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 40 of file class.ilDataCollectionImporter.php.

References ilXmlImporter\getSchemaVersion().

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

◆ init()

ilDataCollectionImporter::init ( )

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

References ilXmlImporter\getImportDirectory().

25  : void
26  {
27  $this->ds = new ilDataCollectionDataSet();
28  $this->ds->setDSPrefix("ds");
29  $this->ds->setImportDirectory($this->getImportDirectory());
30  }
+ 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: