ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjQuestionPoolTaxonomyEditingCommandForwarder.php
Go to the documentation of this file.
1 <?php
2 
21 
28 {
29  protected Service $taxonomy;
31  protected ilDBInterface $db;
32  protected Refinery $refinery;
35  protected ilTabsGUI $tabs ;
36  protected ilLanguage $lng;
37 
38  public function __construct(
39  ilObjQuestionPool $poolOBJ,
40  ilDBInterface $db,
41  Refinery $refinery,
42  ilComponentRepository $component_repository,
43  ilCtrl $ctrl,
44  ilTabsGUI $tabs,
45  ilLanguage $lng,
46  Service $taxonomy
47  ) {
48  $this->poolOBJ = $poolOBJ;
49  $this->db = $db;
50  $this->refinery = $refinery;
51  $this->component_repository = $component_repository;
52  $this->ctrl = $ctrl;
53  $this->tabs = $tabs;
54  $this->lng = $lng;
55  $this->taxonomy = $taxonomy;
56  }
57 
58  public function forward(): void
59  {
60  $this->tabs->setTabActive('settings');
61  $this->lng->loadLanguageModule('tax');
62 
63  $questionList = new ilAssQuestionList(
64  $this->db,
65  $this->lng,
66  $this->refinery,
67  $this->component_repository
68  );
69 
70  $questionList->setParentObjId($this->poolOBJ->getId());
71 
72  $questionList->load();
73 
74  $tax_gui = $this->taxonomy->gui()->getSettingsGUI(
75  $this->poolOBJ->getId(),
76  $this->lng->txt('qpl_taxonomy_tab_info_message'),
77  true
78  )->withAssignedItemSorting(
79  $questionList,
80  'qpl',
81  $this->poolOBJ->getId(),
82  'quest'
83  );
84 
85  $this->ctrl->forwardCommand($tax_gui);
86  }
87 }
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...
__construct(ilObjQuestionPool $poolOBJ, ilDBInterface $db, Refinery $refinery, ilComponentRepository $component_repository, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng, Service $taxonomy)