19 declare(strict_types=1);
29 protected bool $skills_service_enabled =
false,
30 protected bool $hide_info_tab =
false,
43 array $environment = null
50 $environment[
'participant_data_exists']
54 $inputs[
'hide_info_tab'] = $f->checkbox(
55 $lng->
txt(
'tst_hide_info_tab'),
56 $lng->
txt(
'tst_hide_info_tab_desc')
65 bool $participant_data_exists
67 $skills_service_activation = $f->checkbox(
68 $lng->
txt(
'tst_activate_skill_service'),
69 $lng->
txt(
'tst_activate_skill_service_desc')
72 if ($participant_data_exists) {
73 return $skills_service_activation->withDisabled(
true);
76 return $skills_service_activation;
89 return $this->skills_service_enabled;
95 $clone->skills_service_enabled = $skills_service_enabled;
101 return $this->hide_info_tab;
105 $clone = clone $this;
106 $clone->hide_info_tab = $hide_info_tab;
getInputSkillsServiceActivation(\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
withHideInfoTab(bool $hide_info_tab)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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,)
getSkillsServiceEnabled()
withSkillsServiceEnabled(bool $skills_service_enabled)
Refinery Factory $refinery