19declare(strict_types=1);
34 protected bool $skills_service_enabled =
false,
35 protected bool $hide_info_tab =
false,
48 ?array $environment =
null
55 $environment[
'participant_data_exists']
60 $lng->txt(
'tst_hide_info_tab'),
61 $lng->txt(
'tst_hide_info_tab_desc')
70 bool $participant_data_exists
72 $skills_service_activation =
$f->checkbox(
73 $lng->txt(
'tst_activate_skill_service'),
74 $lng->txt(
'tst_activate_skill_service_desc')
75 )->
withValue($this->getSkillsServiceEnabled());
77 if ($participant_data_exists) {
78 return $skills_service_activation->withDisabled(
true);
81 return $skills_service_activation;
87 'skill_service' => [
'integer', (
int) $this->getSkillsServiceEnabled()],
88 'hide_info_tab' => [
'integer', (
int) $this->getHideInfoTab()],
95 AdditionalInformationGenerator::KEY_TEST_TAXONOMIES_ENABLED => $additional_info
97 AdditionalInformationGenerator::KEY_TEST_HIDE_INFO_TAB => $additional_info
104 return $this->skills_service_enabled;
109 $clone = clone $this;
110 $clone->skills_service_enabled = $skills_service_enabled;
116 return $this->hide_info_tab;
120 $clone = clone $this;
121 $clone->hide_info_tab = $hide_info_tab;
getInputSkillsServiceActivation(\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
getSkillsServiceEnabled()
withHideInfoTab(bool $hide_info_tab)
withSkillsServiceEnabled(bool $skills_service_enabled)
toLog(AdditionalInformationGenerator $additional_info)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
__construct(int $test_id, protected bool $skills_service_enabled=false, protected bool $hide_info_tab=false,)
Skill management settings.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...