ILIAS  release_8 Revision v8.24
class.ilObjQuestionPoolTaxonomyEditingCommandForwarder.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Refinery\Factory as Refinery;
20
27{
29 protected ilDBInterface $db;
30 protected Refinery $refinery;
33 protected ilTabsGUI $tabs ;
34 protected ilLanguage $lng;
35
36 public function __construct(
39 Refinery $refinery,
44 ) {
45 $this->poolOBJ = $poolOBJ;
46 $this->db = $db;
47 $this->refinery = $refinery;
48 $this->component_repository = $component_repository;
49 $this->ctrl = $ctrl;
50 $this->tabs = $tabs;
51 $this->lng = $lng;
52 }
53
54 public function forward(): void
55 {
56 $this->tabs->setTabActive('settings');
57 $this->lng->loadLanguageModule('tax');
58
59 $questionList = new ilAssQuestionList(
60 $this->db,
61 $this->lng,
62 $this->refinery,
63 $this->component_repository
64 );
65
66 $questionList->setParentObjId($this->poolOBJ->getId());
67
68 $questionList->load();
69
70 $taxGUI = new ilObjTaxonomyGUI();
71
72 $taxGUI->setAssignedObject($this->poolOBJ->getId());
73 $taxGUI->setMultiple(true);
74
75 $taxGUI->activateAssignedItemSorting($questionList, 'qpl', $this->poolOBJ->getId(), 'quest');
76
77 $this->ctrl->forwardCommand($taxGUI);
78 }
79}
Builds data types.
Definition: Factory.php:21
Class ilCtrl provides processing control methods.
language handling
__construct(ilObjQuestionPool $poolOBJ, ilDBInterface $db, Refinery $refinery, ilComponentRepository $component_repository, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Readable part of repository interface to ilComponentDataDB.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.