19 declare(strict_types=1);
42 $DIC->language()->txt(
'cmix_lp_mode_deactivated'),
45 $modeCompleted->setInfo($DIC->language()->txt(
'cmix_lp_mode_deactivated_info'));
49 $DIC->language()->txt(
'cmix_lp_mode_when_completed'),
52 $modeCompleted->setInfo($DIC->language()->txt(
'cmix_lp_mode_when_completed_info'));
55 $DIC->language()->txt(
'cmix_lp_mode_with_failed'),
58 $modeCompletedFailed->setInfo($DIC->language()->txt(
'cmix_lp_mode_with_failed_info'));
59 $modeCompleted->addSubItem($modeCompletedFailed);
62 $DIC->language()->txt(
'cmix_lp_mode_when_passed'),
65 $modePassed->setInfo($DIC->language()->txt(
'cmix_lp_mode_when_passed_info'));
68 $DIC->language()->txt(
'cmix_lp_mode_with_failed'),
71 $modePassedFailed->setInfo($DIC->language()->txt(
'cmix_lp_mode_with_failed_info'));
72 $modePassed->addSubItem($modePassedFailed);
75 $DIC->language()->txt(
'cmix_lp_mode_when_passed_or_completed'),
78 $modePassedOrCompleted->setInfo($DIC->language()->txt(
'cmix_lp_mode_when_passed_or_completed_info'));
79 $modeRadio->
addOption($modePassedOrCompleted);
81 $DIC->language()->txt(
'cmix_lp_mode_with_failed'),
84 $modePassedOrCompletedFailed->setInfo($DIC->language()->txt(
'cmix_lp_mode_with_failed_info'));
85 $modePassedOrCompleted->addSubItem($modePassedOrCompletedFailed);
92 $modeRadio->
setValue((
string) ilLPObjSettings::LP_MODE_CMIX_COMPLETED);
93 $modeCompletedFailed->setChecked(
true);
99 $modeRadio->
setValue((
string) ilLPObjSettings::LP_MODE_CMIX_PASSED);
100 $modePassedFailed->setChecked(
true);
106 $modeRadio->
setValue((
string) ilLPObjSettings::LP_MODE_CMIX_COMPLETED_OR_PASSED);
107 $modePassedOrCompletedFailed->setChecked(
true);
115 $failedOpt = (
int) $form->
getInput(
'modus_' . $mainMode .
'_failed');
const LP_MODE_CMIX_COMPLETED
This class represents an option in a radio group.
initModeOptions(ilRadioGroupInputGUI $modeRadio)
const LP_MODE_CMIX_COMPLETED_OR_PASSED
const LP_MODE_CMIX_PASSED_WITH_FAILED
const MOVEON_COMPLETED_AND_PASSED
const MOVEON_NOT_APPLICABLE
const LP_MODE_CMIX_PASSED
const LP_MODE_CMIX_COMPL_WITH_FAILED
fetchModeOption(ilPropertyFormGUI $form)
const LP_MODE_DEACTIVATED
const LP_MODE_CMIX_COMPL_OR_PASSED_WITH_FAILED
const MOVEON_COMPLETED_OR_PASSED