3 declare(strict_types=1);
40 $evaluation_access = new \ilRadioGroupInputGUI(
$lng->txt(
'evaluation_access'),
"evaluation_access");
43 $option->setInfo(
$lng->txt(
"svy_evaluation_access_off_info"));
44 $evaluation_access->addOption($option);
47 $option->setInfo(
$lng->txt(
"svy_evaluation_access_all_info"));
48 $evaluation_access->addOption($option);
51 $option->setInfo(
$lng->txt(
"svy_evaluation_access_participants_info"));
52 $evaluation_access->addOption($option);
55 $items[] = $evaluation_access;
57 $anonymization_options = new \ilRadioGroupInputGUI(
$lng->txt(
"survey_results_anonymization"),
"anonymization_options");
59 $option = new \ilCheckboxOption(
$lng->txt(
"survey_results_personalized"),
"statpers");
60 $option->setInfo(
$lng->txt(
"survey_results_personalized_info"));
61 $anonymization_options->addOption($option);
63 $option = new \ilCheckboxOption(
$lng->txt(
"survey_results_anonymized"),
"statanon");
64 $option->setInfo(
$lng->txt(
"survey_results_anonymized_info"));
65 $anonymization_options->addOption($option);
69 $items[] = $anonymization_options;
71 $surveySetting = new \ilSetting(
"survey");
72 if ($surveySetting->get(
"anonymous_participants", null)) {
74 if ((
int) $surveySetting->get(
"anonymous_participants_min",
"0") > 0) {
75 $min =
" (" .
$lng->txt(
"svy_anonymous_participants_min") .
": " .
76 $surveySetting->get(
"anonymous_participants_min") .
")";
79 $anon_list = new \ilCheckboxInputGUI(
$lng->txt(
"svy_anonymous_participants_svy"),
"anon_list");
80 $anon_list->setInfo(
$lng->txt(
"svy_anonymous_participants_svy_info") . $min);
82 $option->addSubItem($anon_list);
86 $anonymization_options->setDisabled(
true);
88 $anon_list->setDisabled(
true);
106 $codes = (bool) $form->
getInput(
"acc_codes");
107 $anon = ((string) $form->
getInput(
"anonymization_options") ===
"statanon");
static _hasDatasets(int $survey_id)
const EVALUATION_ACCESS_OFF
setAnonymize(int $a_anonymize)
set anonymize status
Survey internal ui service.
const EVALUATION_ACCESS_PARTICIPANTS
setValuesFromForm(\ilObjSurvey $survey, \ilPropertyFormGUI $form)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const ANONYMIZE_FREEACCESS
setCalculateSumScore(bool $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const EVALUATION_ACCESS_ALL
setEvaluationAccess(string $evaluation_access=self::EVALUATION_ACCESS_OFF)
setAnonymousUserList(bool $a_value)
getSurveySettingsResults(\ilObjSurvey $survey, InternalGUIService $ui_service)