19declare(strict_types=1);
33 protected bool $skills_service_enabled =
false,
34 protected bool $hide_info_tab =
false,
47 ?array $environment =
null
54 $environment[
'participant_data_exists']
59 $lng->txt(
'tst_hide_info_tab'),
60 $lng->txt(
'tst_hide_info_tab_desc')
69 bool $participant_data_exists
71 $skills_service_activation =
$f->checkbox(
72 $lng->txt(
'tst_activate_skill_service'),
73 $lng->txt(
'tst_activate_skill_service_desc')
74 )->
withValue($this->getSkillsServiceEnabled());
76 if ($participant_data_exists) {
77 return $skills_service_activation->withDisabled(
true);
80 return $skills_service_activation;
86 'skill_service' => [
'integer', (
int) $this->getSkillsServiceEnabled()],
87 'hide_info_tab' => [
'integer', (
int) $this->getHideInfoTab()],
94 AdditionalInformationGenerator::KEY_TEST_TAXONOMIES_ENABLED => $additional_info
96 AdditionalInformationGenerator::KEY_TEST_HIDE_INFO_TAB => $additional_info
103 return $this->skills_service_enabled;
108 $clone = clone $this;
109 $clone->skills_service_enabled = $skills_service_enabled;
115 return $this->hide_info_tab;
119 $clone = clone $this;
120 $clone->hide_info_tab = $hide_info_tab;
127 'skill_service' => $this->getSkillsServiceEnabled(),
128 'hide_info_tab' => $this->getHideInfoTab(),
135 (bool)
$data[
'skill_service'],
136 (
bool)
$data[
'hide_info_tab'],
getInputSkillsServiceActivation(\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
getSkillsServiceEnabled()
withHideInfoTab(bool $hide_info_tab)
withSkillsServiceEnabled(bool $skills_service_enabled)
static fromExport(array $data)
Creates an instance of the object from an array.
toLog(AdditionalInformationGenerator $additional_info)
toForm(\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
toExport()
Transform the object into a simple, associative array.
__construct(protected bool $skills_service_enabled=false, protected bool $hide_info_tab=false,)
Skill management settings.
This interface allows an object to define its own transformation into a language-neutral,...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...