ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilTestRandomQuestionSetDuplicatedTaxonomiesKeysMap.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
12 {
16  private $taxonomyKeyMap = array();
17 
21  private $taxNodeKeyMap = array();
22 
26  private $taxRootNodeKeyMap = array();
27 
32  public function addDuplicatedTaxonomy(ilObjTaxonomy $originalTaxonomy, ilObjTaxonomy $mappedTaxonomy)
33  {
34  $this->taxonomyKeyMap[ $originalTaxonomy->getId() ] = $mappedTaxonomy->getId();
35 
36  foreach($originalTaxonomy->getNodeMapping() as $originalNodeId => $mappedNodeId)
37  {
38  $this->taxNodeKeyMap[$originalNodeId] = $mappedNodeId;
39  }
40  }
41 
46  public function getMappedTaxonomyId($originalTaxonomyId)
47  {
48  return $this->taxonomyKeyMap[$originalTaxonomyId];
49  }
50 
55  public function getMappedTaxNodeId($originalTaxNodeId)
56  {
57  return $this->taxNodeKeyMap[$originalTaxNodeId];
58  }
59 
63  public function getTaxonomyRootNodeMap()
64  {
66  }
67 }