ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
class.ilObjQuestionPoolTaxonomyEditingCommandForwarder.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 {
19  protected $poolOBJ = null;
20 
26  protected $db = null;
27 
33  protected $pluginAdmin = null;
34 
40  protected $ctrl = null;
41 
47  protected $tabs = null;
48 
54  protected $lng = null;
55 
67  {
68  $this->poolOBJ = $poolOBJ;
69  $this->db = $db;
70  $this->pluginAdmin = $pluginAdmin;
71  $this->ctrl = $ctrl;
72  $this->tabs = $tabs;
73  $this->lng = $lng;
74  }
75 
79  public function forward()
80  {
81  $this->tabs->setTabActive('settings');
82  $this->lng->loadLanguageModule('tax');
83 
84  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
85  $questionList = new ilAssQuestionList(
86  $this->db, $this->lng, $this->pluginAdmin, $this->poolOBJ->getId()
87  );
88 
89  $questionList->load();
90 
91  require_once 'Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php';
92  $taxGUI = new ilObjTaxonomyGUI();
93 
94  $taxGUI->setAssignedObject($this->poolOBJ->getId());
95  $taxGUI->setMultiple(true);
96 
97  $taxGUI->activateAssignedItemSorting($questionList, 'qpl', $this->poolOBJ->getId(), 'quest');
98 
99  $this->ctrl->forwardCommand($taxGUI);
100  }
101 }
__construct(ilObjQuestionPool $poolOBJ, ilDB $db, ilPluginAdmin $pluginAdmin, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
This class provides processing control methods.
Tabs GUI.
Administration class for plugins.
Taxonomy GUI class.
Database Wrapper.
Definition: class.ilDB.php:28
language handling