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

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

+ Collaboration diagram for ilImportMapping:

Public Member Functions

 __construct ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setTargetId (int $a_target_id)
 
 getTargetId ()
 
 addMapping (string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
 
 getMapping (string $a_comp, string $a_entity, string $a_old_id)
 
 getAllMappings ()
 
 getMappingsOfEntity (string $a_comp, string $a_entity)
 

Data Fields

array $mappings
 
string $install_id
 
string $install_url
 
ilLogger $log
 

Protected Attributes

int $target_id = 0
 

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 Import mapping

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilImportMapping::__construct ( )

Definition at line 34 of file class.ilImportMapping.php.

References ilLoggerFactory\getLogger().

35  {
36  $this->mappings = array();
37  $this->log = ilLoggerFactory::getLogger("exp");
38  $this->log->debug("ilImportMapping Construct this->mappings = array()");
39  }
static getLogger(string $a_component_id)
Get component logger.
+ Here is the call graph for this function:

Member Function Documentation

◆ addMapping()

ilImportMapping::addMapping ( string  $a_comp,
string  $a_entity,
string  $a_old_id,
string  $a_new_id 
)

Definition at line 72 of file class.ilImportMapping.php.

Referenced by ilTestImporter\addTexonomyAndQuestionsMapping(), ilItemGroupDataSet\getDependencies(), ilContainerReferenceImporter\getReference(), ilSurveyImporter\getSurvey(), ilBibliographicDataSet\getXmlNamespace(), ilDataCollectionDataSet\getXmlNamespace(), ilHTMLLearningModuleDataSet\getXmlRecord(), ilPollDataSet\getXmlRecord(), ilContentPageDataSet\importRecord(), ilCOPageDataSet\importRecord(), ilNewsDataSet\importRecord(), ilIndividualAssessmentDataSet\importRecord(), ilPortfolioDataSet\importRecord(), ilMediaCastDataSet\importRecord(), ilTaxonomyDataSet\importRecord(), ilCalendarDataSet\importRecord(), ilGlossaryDataSet\importRecord(), ilMediaPoolDataSet\importRecord(), ilBlogDataSet\importRecord(), ilUserDataSet\importRecord(), ilWikiDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), ilSessionDataSet\importRecord(), ilCmiXapiDataSet\importRecord(), ilLearningModuleDataSet\importRecord(), ilStyleDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilSkillDataSet\importRecord(), ilSurveyQuestionPoolImporter\importXmlRepresentation(), ilChatroomImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilFileImporter\importXmlRepresentation(), ilLearningSequenceImporter\importXmlRepresentation(), ilCategoryImporter\importXmlRepresentation(), ilTestQuestionPoolImporter\importXmlRepresentation(), ilWebResourceImporter\importXmlRepresentation(), ilTestImporter\importXmlRepresentation(), ilCourseImporter\importXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilOrgUnitImporter\importXmlRepresentation(), and ilForumImporter\init().

77  : void {
78  $this->mappings[$a_comp][$a_entity][$a_old_id] = $a_new_id;
79  //$this->log->debug("ADD MAPPING this->mappings = ", $this->mappings);
80  }
+ Here is the caller graph for this function:

◆ getAllMappings()

ilImportMapping::getAllMappings ( )

Definition at line 99 of file class.ilImportMapping.php.

References $mappings.

Referenced by ilObjectDataSet\getDependencies(), and ilHelpDataSet\importRecord().

99  : array
100  {
101  return $this->mappings;
102  }
+ Here is the caller graph for this function:

◆ getInstallId()

ilImportMapping::getInstallId ( )
final

Definition at line 46 of file class.ilImportMapping.php.

References $install_id.

Referenced by ilSkillDataSet\importRecord().

46  : string
47  {
48  return $this->install_id;
49  }
+ Here is the caller graph for this function:

◆ getInstallUrl()

ilImportMapping::getInstallUrl ( )
final

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

References $install_url.

56  : string
57  {
58  return $this->install_url;
59  }

◆ getMapping()

ilImportMapping::getMapping ( string  $a_comp,
string  $a_entity,
string  $a_old_id 
)

Definition at line 82 of file class.ilImportMapping.php.

Referenced by ilLearningSequenceImporter\buildLPSettings(), ilLearningSequenceImporter\buildLSItems(), ilDataCollectionDataSet\escapeArray(), exQuestionPoolImporter\finalProcessing(), ilMediaCastImporter\finalProcessing(), ilContentPageImporter\finalProcessing(), ilContainerImporter\finalProcessing(), ilForumImporter\finalProcessing(), ilGlossaryImporter\finalProcessing(), ilCategoryImporter\finalProcessing(), ilLearningModuleImporter\finalProcessing(), ilTestQuestionPoolImporter\finalProcessing(), ilTestImporter\finalRandomTestTaxonomyProcessing(), ilItemGroupDataSet\getDependencies(), ilObjectDataSet\getDependencies(), ilTestImporter\getNewMappedTaxonomyFilter(), ilPageComponentPluginImporter\getPCMapping(), ilContainerReferenceImporter\getReference(), ilSurveyImporter\getSurvey(), ilBibliographicDataSet\getXmlNamespace(), ilDataCollectionDataSet\getXmlNamespace(), ilHTMLLearningModuleDataSet\getXmlRecord(), ilPollDataSet\getXmlRecord(), ilContainerImporter\handleOfflineStatus(), ilHelpDataSet\importRecord(), ilRatingDataSet\importRecord(), ilContentPageDataSet\importRecord(), ilNotesDataSet\importRecord(), ilNewsDataSet\importRecord(), ilIndividualAssessmentDataSet\importRecord(), ilSurveyDataSet\importRecord(), ilPortfolioDataSet\importRecord(), ilMediaCastDataSet\importRecord(), ilTaxonomyDataSet\importRecord(), ilCalendarDataSet\importRecord(), ilGlossaryDataSet\importRecord(), ilMediaPoolDataSet\importRecord(), ilBlogDataSet\importRecord(), ilUserDataSet\importRecord(), ilWikiDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), ilSessionDataSet\importRecord(), ilCmiXapiDataSet\importRecord(), ilLearningModuleDataSet\importRecord(), ilStyleDataSet\importRecord(), ilExerciseDataSet\importRecord(), ilSkillDataSet\importRecord(), ilMetaDataImporter\importXmlRepresentation(), ilSurveyQuestionPoolImporter\importXmlRepresentation(), ilChatroomImporter\importXmlRepresentation(), ilGroupImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilFileImporter\importXmlRepresentation(), ilAccessControlImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilLearningSequenceImporter\importXmlRepresentation(), ilCategoryImporter\importXmlRepresentation(), ilTestQuestionPoolImporter\importXmlRepresentation(), ilWebResourceImporter\importXmlRepresentation(), ilTestImporter\importXmlRepresentation(), ilCourseImporter\importXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilLearningModuleImporter\importXmlRepresentation(), ilScormAiccImporter\importXmlRepresentation(), ilCmiXapiImporter\importXmlRepresentation(), ilForumImporter\init(), and ilLearningSequenceImporter\updateRefId().

86  : ?string {
87  $this->log->debug("a_comp = $a_comp, a_entity = $a_entity , a_old_id = $a_old_id");
88 
89  if (!isset($this->mappings[$a_comp]) or !isset($this->mappings[$a_comp][$a_entity])) {
90  return null;
91  }
92  if (isset($this->mappings[$a_comp][$a_entity][$a_old_id])) {
93  return $this->mappings[$a_comp][$a_entity][$a_old_id];
94  }
95 
96  return null;
97  }
+ Here is the caller graph for this function:

◆ getMappingsOfEntity()

◆ getTargetId()

ilImportMapping::getTargetId ( )
final

Definition at line 67 of file class.ilImportMapping.php.

References $target_id.

Referenced by ilDataCollectionDataSet\escapeArray(), ilSessionImporter\importXmlRepresentation(), and ilContainerImporter\isRootNode().

67  : int
68  {
69  return $this->target_id;
70  }
+ Here is the caller graph for this function:

◆ setInstallId()

ilImportMapping::setInstallId ( string  $a_val)
final

Definition at line 41 of file class.ilImportMapping.php.

41  : void
42  {
43  $this->install_id = $a_val;
44  }

◆ setInstallUrl()

ilImportMapping::setInstallUrl ( string  $a_val)
final

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

51  : void
52  {
53  $this->install_url = $a_val;
54  }

◆ setTargetId()

ilImportMapping::setTargetId ( int  $a_target_id)
final

Definition at line 61 of file class.ilImportMapping.php.

61  : void
62  {
63  $this->target_id = $a_target_id;
64  $this->log->debug("a_target_id=" . $a_target_id);
65  }

Field Documentation

◆ $install_id

string ilImportMapping::$install_id

Definition at line 28 of file class.ilImportMapping.php.

Referenced by getInstallId().

◆ $install_url

string ilImportMapping::$install_url

Definition at line 29 of file class.ilImportMapping.php.

Referenced by getInstallUrl().

◆ $log

ilLogger ilImportMapping::$log

Definition at line 30 of file class.ilImportMapping.php.

◆ $mappings

array ilImportMapping::$mappings

Definition at line 27 of file class.ilImportMapping.php.

Referenced by getAllMappings().

◆ $target_id

int ilImportMapping::$target_id = 0
protected

Definition at line 32 of file class.ilImportMapping.php.

Referenced by getTargetId().


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