ILIAS  release_8 Revision v8.23
class.ilObjQuestionPoolTaxonomyEditingCommandForwarder.php
Go to the documentation of this file.
1 <?php
2 
20 
27 {
29  protected ilDBInterface $db;
30  protected Refinery $refinery;
33  protected ilTabsGUI $tabs ;
34  protected ilLanguage $lng;
35 
36  public function __construct(
37  ilObjQuestionPool $poolOBJ,
38  ilDBInterface $db,
39  Refinery $refinery,
40  ilComponentRepository $component_repository,
41  ilCtrl $ctrl,
42  ilTabsGUI $tabs,
43  ilLanguage $lng
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 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjQuestionPool $poolOBJ, ilDBInterface $db, Refinery $refinery, ilComponentRepository $component_repository, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)