19declare(strict_types=1);
41 private readonly
ilCtrl $ctrl,
42 private readonly
Factory $ui_factory,
43 private readonly
Renderer $ui_renderer,
53 private readonly HTTP
$http,
64 !$this->pool_obj->isSkillServiceEnabled()
66 || !$this->
access->checkAccess(
'write',
'', $this->ref_id);
71 $link = $this->
ctrl->getLinkTargetByClass(
72 ilAssQuestionSkillAssignmentsGUI::class,
75 $this->
tabs->addSubTab(
76 strtolower(ilAssQuestionSkillAssignmentsGUI::class),
77 $this->
lng->txt(
'qpl_skl_sub_tab_quest_assign'),
81 $link = $this->
ctrl->getLinkTargetByClass(
82 ilAssQuestionSkillUsagesGUI::class,
83 ilAssQuestionSkillUsagesGUI::CMD_SHOW
85 $this->
tabs->addSubTab(
86 strtolower(ilAssQuestionSkillUsagesGUI::class),
87 $this->
lng->txt(
'qpl_skl_sub_tab_usages'),
91 $this->
tabs->activateTab(
'qpl_tab_competences');
92 $this->
tabs->activateSubTab($activeSubTabId);
98 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'no_permission'),
true);
99 $this->
ctrl->setParameterByClass(ilObjQuestionPoolGUI::class,
'ref_id', $this->ref_id);
100 $this->
ctrl->redirectByClass(ilObjQuestionPoolGUI::class);
103 $next_class = $this->
ctrl->getNextClass();
107 switch (strtolower($next_class)) {
108 case strtolower(ilAssQuestionSkillAssignmentsGUI::class):
110 $question_list->setParentObjId($this->pool_obj->getId());
112 $question_list->load();
120 $this->request_data_collector,
121 $this->skill_usage_service,
129 $gui->setAssignmentEditingEnabled(
true);
130 $gui->setQuestionContainerId($this->pool_obj->getId());
131 $gui->setQuestionList($question_list);
133 $this->
ctrl->forwardCommand($gui);
136 case strtolower(ilAssQuestionSkillUsagesGUI::class):
137 $this->
ctrl->forwardCommand(
145 $this->pool_obj->getId()
Builds a Color from either hex- or rgb values.
const QUESTION_INSTANCE_TYPE_ORIGINALS
const CMD_SHOW_SKILL_QUEST_ASSIGNS
Class ilCtrl provides processing control methods.
static isSkillManagementGloballyActivated()
manageTabs($activeSubTabId)
__construct(private readonly ilCtrl $ctrl, private readonly Factory $ui_factory, private readonly Renderer $ui_renderer, private readonly GlobalHttpState $http_state, private readonly Refinery $refinery, private readonly ilAccessHandler $access, private readonly ilTabsGUI $tabs, private readonly ilGlobalTemplateInterface $tpl, private readonly ilLanguage $lng, private readonly ilDBInterface $db, private readonly ilComponentRepository $component_repository, private readonly ilObjQuestionPool $pool_obj, private readonly HTTP $http, private readonly ilToolbarGUI $toolbar, private readonly SkillUsageService $skill_usage_service, private readonly RequestDataCollector $request_data_collector, private readonly int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface GlobalHttpState.
This is how the factory for UI elements looks.
An entity that renders components to a string output.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
Readable part of repository interface to ilComponentDataDB.
static http()
Fetches the global http state from ILIAS.