ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjQuestionPoolTaxonomyEditingCommandForwarder.php
Go to the documentation of this file.
1<?php
2
20use ILIAS\Refinery\Factory as Refinery;
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(
41 Refinery $refinery,
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}
Builds data types.
Definition: Factory.php:36
Class ilCtrl provides processing control methods.
language handling
__construct(ilObjQuestionPool $poolOBJ, ilDBInterface $db, Refinery $refinery, ilComponentRepository $component_repository, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng, Service $taxonomy)
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.