ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilImportMapping Class Reference

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

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.

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.

References ilLoggerFactory\getLogger().

+ Here is the call graph for this function:

Member Function Documentation

◆ addMapping()

◆ getAllMappings()

ilImportMapping::getAllMappings ( )

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

99 : array
100 {
101 return $this->mappings;
102 }

Referenced by ilHelpDataSet\importRecord().

+ Here is the caller graph for this function:

◆ getInstallId()

ilImportMapping::getInstallId ( )
final

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

46 : string
47 {
48 return $this->install_id;
49 }

References $install_id.

◆ getInstallUrl()

ilImportMapping::getInstallUrl ( )
final

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

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

References $install_url.

◆ getMapping()

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

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

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 }

Referenced by ilLearningSequenceImporter\buildLPSettings(), ilLearningSequenceImporter\buildLSItems(), ilCategoryImporter\finalProcessing(), ilContainerImporter\finalProcessing(), ilGlossaryImporter\finalProcessing(), ilLearningModuleImporter\finalProcessing(), ilMediaCastImporter\finalProcessing(), ilTestQuestionPoolImporter\finalProcessing(), ilTestImporter\getNewMappedTaxonomyFilter(), ilPageComponentPluginImporter\getPCMapping(), ilContainerImporter\handleOfflineStatus(), ilCalendarDataSet\importRecord(), ilCmiXapiDataSet\importRecord(), ilContentPageDataSet\importRecord(), ilGlossaryDataSet\importRecord(), ilHelpDataSet\importRecord(), ilIndividualAssessmentDataSet\importRecord(), ilLearningModuleDataSet\importRecord(), ilMediaCastDataSet\importRecord(), ilMediaObjectDataSet\importRecord(), ilMediaPoolDataSet\importRecord(), ilNewsDataSet\importRecord(), ilNotesDataSet\importRecord(), ilPortfolioDataSet\importRecord(), ilRatingDataSet\importRecord(), ilSessionDataSet\importRecord(), ilSkillDataSet\importRecord(), ilStyleDataSet\importRecord(), ilSurveyDataSet\importRecord(), ilTaxonomyDataSet\importRecord(), ilUserDataSet\importRecord(), ilWikiDataSet\importRecord(), ilChatroomImporter\importXmlRepresentation(), ilCmiXapiImporter\importXmlRepresentation(), ilFolderImporter\importXmlRepresentation(), ilGlossaryImporter\importXmlRepresentation(), ilLearningSequenceImporter\importXmlRepresentation(), ilSurveyImporter\importXmlRepresentation(), and ilLearningSequenceImporter\updateRefId().

+ Here is the caller graph for this function:

◆ getMappingsOfEntity()

ilImportMapping::getMappingsOfEntity ( string  $a_comp,
string  $a_entity 
)

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

107 : array {
108 if (isset($this->mappings[$a_comp][$a_entity])) {
109 return $this->mappings[$a_comp][$a_entity];
110 }
111 return array();
112 }

Referenced by ilContainerImporter\finalProcessing(), ilContentPageImporter\finalProcessing(), ilForumImporter\finalProcessing(), ilGlossaryImporter\finalProcessing(), ilLearningModuleImporter\finalProcessing(), ilLearningSequenceImporter\finalProcessing(), ilTestImporter\finalProcessing(), and ilTestQuestionPoolImporter\finalProcessing().

+ Here is the caller graph for this function:

◆ getTargetId()

ilImportMapping::getTargetId ( )
final

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

67 : int
68 {
69 return $this->target_id;
70 }

References $target_id.

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

+ 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.

◆ $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: