ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilQuestionPoolDuplicatedTaxonomiesKeysMap Class Reference
+ Collaboration diagram for ilQuestionPoolDuplicatedTaxonomiesKeysMap:

Public Member Functions

 addDuplicatedTaxonomy (ilObjTaxonomy $originalTaxonomy, ilObjTaxonomy $mappedTaxonomy)
 
 getMappedTaxonomyId ($originalTaxonomyId)
 
 getMappedTaxNodeId ($originalTaxNodeId)
 
 getTaxonomyRootNodeMap ()
 

Private Attributes

 $taxonomyKeyMap = array()
 
 $taxNodeKeyMap = array()
 
 $taxRootNodeKeyMap = array()
 

Detailed Description

Member Function Documentation

◆ addDuplicatedTaxonomy()

ilQuestionPoolDuplicatedTaxonomiesKeysMap::addDuplicatedTaxonomy ( ilObjTaxonomy  $originalTaxonomy,
ilObjTaxonomy  $mappedTaxonomy 
)
Parameters
ilObjTaxonomy$originalTaxonomyId
ilObjTaxonomy$mappedTaxonomyId

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

References ilObject2\getId(), and ilObjTaxonomy\getNodeMapping().

33  {
34  $this->taxonomyKeyMap[ $originalTaxonomy->getId() ] = $mappedTaxonomy->getId();
35 
36  foreach ($originalTaxonomy->getNodeMapping() as $originalNodeId => $mappedNodeId) {
37  $this->taxNodeKeyMap[$originalNodeId] = $mappedNodeId;
38  }
39  }
getNodeMapping()
Get node mapping (used after cloning)
+ Here is the call graph for this function:

◆ getMappedTaxNodeId()

ilQuestionPoolDuplicatedTaxonomiesKeysMap::getMappedTaxNodeId (   $originalTaxNodeId)
Parameters
integer$originalTaxNodeId
Returns
integer

Definition at line 54 of file class.ilQuestionPoolDuplicatedTaxonomiesKeysMap.php.

Referenced by ilTestRandomQuestionSetPoolDeriver\buildOriginalTaxonomyFilterForDerivedPool(), and ilTestRandomQuestionSetSourcePoolDefinition\mapTaxonomyFilter().

55  {
56  return $this->taxNodeKeyMap[$originalTaxNodeId];
57  }
+ Here is the caller graph for this function:

◆ getMappedTaxonomyId()

ilQuestionPoolDuplicatedTaxonomiesKeysMap::getMappedTaxonomyId (   $originalTaxonomyId)
Parameters
integer$originalTaxonomyId
Returns
integer

Definition at line 45 of file class.ilQuestionPoolDuplicatedTaxonomiesKeysMap.php.

Referenced by ilTestRandomQuestionSetPoolDeriver\buildOriginalTaxonomyFilterForDerivedPool(), and ilTestRandomQuestionSetSourcePoolDefinition\mapTaxonomyFilter().

46  {
47  return $this->taxonomyKeyMap[$originalTaxonomyId];
48  }
+ Here is the caller graph for this function:

◆ getTaxonomyRootNodeMap()

ilQuestionPoolDuplicatedTaxonomiesKeysMap::getTaxonomyRootNodeMap ( )

Field Documentation

◆ $taxNodeKeyMap

ilQuestionPoolDuplicatedTaxonomiesKeysMap::$taxNodeKeyMap = array()
private

◆ $taxonomyKeyMap

ilQuestionPoolDuplicatedTaxonomiesKeysMap::$taxonomyKeyMap = array()
private

◆ $taxRootNodeKeyMap

ilQuestionPoolDuplicatedTaxonomiesKeysMap::$taxRootNodeKeyMap = array()
private

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