ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 22 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 54 of file class.ilDataCollectionImporter.php.

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

◆ getExcelCharForInteger()

static ilDataCollectionImporter::getExcelCharForInteger ( int  $int)
static

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

References ILIAS\Repository\int().

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

59  : string
60  {
61  $char = "";
62  $rng = range("A", "Z");
63  while ($int > 0) {
64  $diff = ($int - 1) % 26;
65  $char = $rng[$diff] . $char;
66  $int -= $diff;
67  $int = (int) ($int / 26);
68  }
69 
70  return $char;
71  }
+ 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 41 of file class.ilDataCollectionImporter.php.

References ilXmlImporter\getSchemaVersion().

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

◆ init()

ilDataCollectionImporter::init ( )

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

References ilXmlImporter\getImportDirectory().

26  : void
27  {
28  $this->ds = new ilDataCollectionDataSet();
29  $this->ds->setDSPrefix("ds");
30  $this->ds->setImportDirectory($this->getImportDirectory());
31  }
+ Here is the call graph for this function:

Field Documentation

◆ $ds

ilDataCollectionDataSet ilDataCollectionImporter::$ds
protected

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


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