ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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($this->db, $this->lng, $this->pluginAdmin);
86
87 $questionList->setParentObjId($this->poolOBJ->getId());
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}
This class provides processing control methods.
Database Wrapper.
Definition: class.ilDB.php:29
language handling
__construct(ilObjQuestionPool $poolOBJ, ilDB $db, ilPluginAdmin $pluginAdmin, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
Taxonomy GUI class.
Administration class for plugins.
Tabs GUI.