ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Test\Settings\MainSettings\SettingsAdditional Class Reference
+ Inheritance diagram for ILIAS\Test\Settings\MainSettings\SettingsAdditional:
+ Collaboration diagram for ILIAS\Test\Settings\MainSettings\SettingsAdditional:

Public Member Functions

 __construct (int $test_id, protected bool $skills_service_enabled=false, protected bool $hide_info_tab=false,)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 
 getSkillsServiceEnabled ()
 
 withSkillsServiceEnabled (bool $skills_service_enabled)
 
 getHideInfoTab ()
 
 withHideInfoTab (bool $hide_info_tab)
 
- Public Member Functions inherited from ILIAS\Test\Settings\TestSettings
 __construct (int $test_id)
 
 getTestId ()
 
 withTestId (int $test_id)
 
 toForm (\ilLanguage $lng, FieldFactory $f, Refinery $refinery, ?array $environment=null)
 
 toStorage ()
 
 toLog (AdditionalInformationGenerator $additional_info)
 

Private Member Functions

 getInputSkillsServiceActivation (\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Test\Settings\TestSettings
int $test_id
 

Detailed Description

Definition at line 30 of file SettingsAdditional.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::__construct ( int  $test_id,
protected bool  $skills_service_enabled = false,
protected bool  $hide_info_tab = false 
)

Definition at line 32 of file SettingsAdditional.php.

References ILIAS\GlobalScreen\Provider\__construct().

36  {
38  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getHideInfoTab()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getHideInfoTab ( )

Definition at line 114 of file SettingsAdditional.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsAdditional\toForm(), ILIAS\Test\Settings\MainSettings\SettingsAdditional\toLog(), and ILIAS\Test\Settings\MainSettings\SettingsAdditional\toStorage().

114  : bool
115  {
116  return $this->hide_info_tab;
117  }
+ Here is the caller graph for this function:

◆ getInputSkillsServiceActivation()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getInputSkillsServiceActivation ( \ilLanguage  $lng,
FieldFactory  $f,
bool  $participant_data_exists 
)
private

Definition at line 67 of file SettingsAdditional.php.

References ILIAS\Test\Settings\MainSettings\SettingsAdditional\getSkillsServiceEnabled(), ilLanguage\txt(), and ILIAS\UI\Implementation\Component\Input\withValue().

Referenced by ILIAS\Test\Settings\MainSettings\SettingsAdditional\toForm().

71  : Checkbox {
72  $skills_service_activation = $f->checkbox(
73  $lng->txt('tst_activate_skill_service'),
74  $lng->txt('tst_activate_skill_service_desc')
76 
77  if ($participant_data_exists) {
78  return $skills_service_activation->withDisabled(true);
79  }
80 
81  return $skills_service_activation;
82  }
withValue($value)
Get an input like this with another value displayed on the client side.
Definition: Group.php:61
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSkillsServiceEnabled()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::getSkillsServiceEnabled ( )

Definition at line 102 of file SettingsAdditional.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsAdditional\getInputSkillsServiceActivation(), ILIAS\Test\Settings\MainSettings\SettingsAdditional\toLog(), and ILIAS\Test\Settings\MainSettings\SettingsAdditional\toStorage().

102  : bool
103  {
104  return $this->skills_service_enabled;
105  }
+ Here is the caller graph for this function:

◆ toForm()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::toForm ( \ilLanguage  $lng,
FieldFactory  $f,
Refinery  $refinery,
?array  $environment = null 
)
Returns
array<ILIAS>

Definition at line 44 of file SettingsAdditional.php.

References ILIAS\UI\Implementation\Component\Input\$inputs, ILIAS\Test\Settings\MainSettings\SettingsAdditional\getHideInfoTab(), ILIAS\Test\Settings\MainSettings\SettingsAdditional\getInputSkillsServiceActivation(), ilLanguage\txt(), and ILIAS\UI\Implementation\Component\Input\withValue().

49  : array {
50  $inputs = [];
51  if ((new \ilSkillManagementSettings())->isActivated()) {
52  $inputs['skills_service_activation'] = $this->getInputSkillsServiceActivation(
53  $lng,
54  $f,
55  $environment['participant_data_exists']
56  );
57  }
58 
59  $inputs['hide_info_tab'] = $f->checkbox(
60  $lng->txt('tst_hide_info_tab'),
61  $lng->txt('tst_hide_info_tab_desc')
62  )->withValue($this->getHideInfoTab());
63 
64  return $inputs;
65  }
getInputSkillsServiceActivation(\ilLanguage $lng, FieldFactory $f, bool $participant_data_exists)
withValue($value)
Get an input like this with another value displayed on the client side.
Definition: Group.php:61
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

◆ toLog()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::toLog ( AdditionalInformationGenerator  $additional_info)

◆ toStorage()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::toStorage ( )

Definition at line 84 of file SettingsAdditional.php.

References ILIAS\Test\Settings\MainSettings\SettingsAdditional\getHideInfoTab(), ILIAS\Test\Settings\MainSettings\SettingsAdditional\getSkillsServiceEnabled(), and ILIAS\Repository\int().

84  : array
85  {
86  return [
87  'skill_service' => ['integer', (int) $this->getSkillsServiceEnabled()],
88  'hide_info_tab' => ['integer', (int) $this->getHideInfoTab()],
89  ];
90  }
+ Here is the call graph for this function:

◆ withHideInfoTab()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::withHideInfoTab ( bool  $hide_info_tab)

Definition at line 118 of file SettingsAdditional.php.

Referenced by ILIAS\Test\Settings\MainSettings\SettingsMainGUI\getAdditionalFunctionalitySettingsForStorage().

118  : self
119  {
120  $clone = clone $this;
121  $clone->hide_info_tab = $hide_info_tab;
122  return $clone;
123  }
+ Here is the caller graph for this function:

◆ withSkillsServiceEnabled()

ILIAS\Test\Settings\MainSettings\SettingsAdditional::withSkillsServiceEnabled ( bool  $skills_service_enabled)

Definition at line 107 of file SettingsAdditional.php.

107  : self
108  {
109  $clone = clone $this;
110  $clone->skills_service_enabled = $skills_service_enabled;
111  return $clone;
112  }

The documentation for this class was generated from the following file: