ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Survey\Mode\Feedback360\UIModifier Class Reference

Interface for modes. More...

+ Inheritance diagram for ILIAS\Survey\Mode\Feedback360\UIModifier:
+ Collaboration diagram for ILIAS\Survey\Mode\Feedback360\UIModifier:

Public Member Functions

 getSurveySettingsGeneral (\ilObjSurvey $survey)
 
 getSurveySettingsReminderTargets (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 getSurveySettingsResults (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 setValuesFromForm (\ilObjSurvey $survey, \ilPropertyFormGUI $form)
 
- Public Member Functions inherited from ILIAS\Survey\Mode\AbstractUIModifier
 __construct (InternalGUIService $gui)
 
 setInternalService (InternalService $internal_service)
 
 getInternalService ()
 
 getSurveySettingsGeneral (\ilObjSurvey $survey)
 
 getSurveySettingsReminderTargets (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 getSurveySettingsResults (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 setValuesFromForm (\ilObjSurvey $survey, \ilPropertyFormGUI $form)
 
 setResultsOverviewToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 setResultsCompetenceToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
 
 setResultsDetailToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 addApprSelectionToToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
 
 getDetailPanels (array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 
 setInternalService (InternalService $internal_service)
 
 getInternalService ()
 
 getSurveySettingsGeneral (\ilObjSurvey $survey)
 
 getSurveySettingsReminderTargets (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 getSurveySettingsResults (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 setValuesFromForm (\ilObjSurvey $survey, \ilPropertyFormGUI $form)
 
 setResultsOverviewToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 setResultsDetailToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 setResultsCompetenceToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
 
 getDetailPanels (array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Survey\Mode\AbstractUIModifier
 addExportAndPrintButton (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, bool $details, \ilTemplate $eval_tpl)
 
 buildExportButtonAndModal (\ilTemplate $eval_tpl, string $export_cmd)
 
 getExportModal ()
 
 getPanelTable (array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 
 getPanelChart (\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 
 getPanelText (\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval, \ilSurveyEvaluationResults $question_res)
 
 getPanelCard (\ilSurveyEvaluationResults $question_res)
 
- Protected Attributes inherited from ILIAS\Survey\Mode\AbstractUIModifier
InternalGUIService $gui
 
InternalService $service = null
 

Detailed Description

Interface for modes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 30 of file class.UIModifier.php.

Member Function Documentation

◆ getSurveySettingsGeneral()

ILIAS\Survey\Mode\Feedback360\UIModifier::getSurveySettingsGeneral ( \ilObjSurvey  $survey)
Returns
\ilFormPropertyGUI[]

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

Definition at line 32 of file class.UIModifier.php.

34 : array {
35 $items = [];
36 $lng = $this->service->gui()->lng();
37
38 $self_eval = new \ilCheckboxInputGUI($lng->txt("survey_360_self_evaluation"), "self_eval");
39 $self_eval->setInfo($lng->txt("survey_360_self_evaluation_info"));
40 $self_eval->setChecked($survey->get360SelfEvaluation());
41 $items[] = $self_eval;
42
43 return $items;
44 }
global $lng
Definition: privfeed.php:31

◆ getSurveySettingsReminderTargets()

ILIAS\Survey\Mode\Feedback360\UIModifier::getSurveySettingsReminderTargets ( \ilObjSurvey  $survey,
InternalGUIService  $ui_service 
)
Returns
\ilFormPropertyGUI[]

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

Definition at line 46 of file class.UIModifier.php.

49 : array {
50 $items = [];
51 $lng = $ui_service->lng();
52
53 // remind appraisees
54 $cb = new \ilCheckboxInputGUI($lng->txt("survey_notification_target_group"), "remind_appraisees");
55 $cb->setOptionTitle($lng->txt("survey_360_appraisees"));
56 $cb->setInfo($lng->txt("survey_360_appraisees_remind_info"));
57 $cb->setValue("1");
58 $cb->setChecked(in_array(
59 $survey->getReminderTarget(),
61 true
62 ));
63 $items[] = $cb;
64
65 // remind raters
66 $cb = new \ilCheckboxInputGUI("", "remind_raters");
67 $cb->setOptionTitle($lng->txt("survey_360_raters"));
68 $cb->setInfo($lng->txt("survey_360_raters_remind_info"));
69 $cb->setValue("1");
70 $cb->setChecked(in_array(
71 $survey->getReminderTarget(),
73 true
74 ));
75 $items[] = $cb;
76
77 return $items;
78 }
const NOTIFICATION_APPRAISEES_AND_RATERS
const NOTIFICATION_APPRAISEES
const NOTIFICATION_RATERS

◆ getSurveySettingsResults()

ILIAS\Survey\Mode\Feedback360\UIModifier::getSurveySettingsResults ( \ilObjSurvey  $survey,
InternalGUIService  $ui_service 
)
Returns
\ilFormPropertyGUI[]

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

Definition at line 80 of file class.UIModifier.php.

83 : array {
84 $items = [];
85 $lng = $ui_service->lng();
86
87 $ts_results = new \ilRadioGroupInputGUI($lng->txt("survey_360_results"), "ts_res");
88 $ts_results->setValue((string) $survey->get360Results());
89
90 $option = new \ilRadioOption($lng->txt("survey_360_results_none"), (string) \ilObjSurvey::RESULTS_360_NONE);
91 $option->setInfo($lng->txt("survey_360_results_none_info"));
92 $ts_results->addOption($option);
93
94 $option = new \ilRadioOption($lng->txt("survey_360_results_own"), (string) \ilObjSurvey::RESULTS_360_OWN);
95 $option->setInfo($lng->txt("survey_360_results_own_info"));
96 $ts_results->addOption($option);
97
98 $option = new \ilRadioOption($lng->txt("survey_360_results_all"), (string) \ilObjSurvey::RESULTS_360_ALL);
99 $option->setInfo($lng->txt("survey_360_results_all_info"));
100 $ts_results->addOption($option);
101
102 $items[] = $ts_results;
103
104 return $items;
105 }

◆ setValuesFromForm()

ILIAS\Survey\Mode\Feedback360\UIModifier::setValuesFromForm ( \ilObjSurvey  $survey,
\ilPropertyFormGUI  $form 
)

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

Definition at line 107 of file class.UIModifier.php.

110 : void {
111 if ($form->getInput("remind_appraisees") && $form->getInput("remind_raters")) {
112 $survey->setReminderTarget(\ilObjSurvey::NOTIFICATION_APPRAISEES_AND_RATERS);
113 } elseif ($form->getInput("remind_appraisees")) {
114 $survey->setReminderTarget(\ilObjSurvey::NOTIFICATION_APPRAISEES);
115 } elseif ($form->getInput("remind_raters")) {
116 $survey->setReminderTarget(\ilObjSurvey::NOTIFICATION_RATERS);
117 } else {
118 $survey->setReminderTarget(0);
119 }
120
121 $survey->set360SelfEvaluation((bool) $form->getInput("self_eval"));
122 $survey->set360Results((int) $form->getInput("ts_res"));
123 }

References ilObjSurvey\NOTIFICATION_APPRAISEES_AND_RATERS, and ilObjSurvey\setReminderTarget().

+ Here is the call graph for this function:

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