ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap:

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

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

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

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

{
$this->taxonomyKeyMap[ $originalTaxonomy->getId() ] = $mappedTaxonomy->getId();
foreach($originalTaxonomy->getNodeMapping() as $originalNodeId => $mappedNodeId)
{
$this->taxNodeKeyMap[$originalNodeId] = $mappedNodeId;
}
}

+ Here is the call graph for this function:

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

Definition at line 55 of file class.ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap.php.

{
return $this->taxNodeKeyMap[$originalTaxNodeId];
}
ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap::getMappedTaxonomyId (   $originalTaxonomyId)
Parameters
integer$originalTaxonomyId
Returns
integer

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

{
return $this->taxonomyKeyMap[$originalTaxonomyId];
}
ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap::getTaxonomyRootNodeMap ( )
Returns
array

Definition at line 63 of file class.ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap.php.

References $taxRootNodeKeyMap.

Field Documentation

ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap::$taxNodeKeyMap = array()
private
ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap::$taxonomyKeyMap = array()
private
ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap::$taxRootNodeKeyMap = array()
private

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