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

Interface for modes. More...

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

Public Member Functions

 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

◆ getSurveySettingsResults()

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

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

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

35 : array {
36 $items = [];
37 $lng = $ui_service->lng();
38
39 //check the names of these vars
40 $evaluation_access = new \ilRadioGroupInputGUI($lng->txt('evaluation_access'), "self_eval_res");
41 $evaluation_access->setValue((string) $survey->getSelfEvaluationResults());
42
43 $option = new \ilRadioOption($lng->txt("svy_self_ev_access_results_none"), (string) \ilObjSurvey::RESULTS_SELF_EVAL_NONE);
44 $evaluation_access->addOption($option);
45
46 $option = new \ilRadioOption($lng->txt("svy_self_ev_access_results_own"), (string) \ilObjSurvey::RESULTS_SELF_EVAL_OWN);
47 $evaluation_access->addOption($option);
48
49 $option = new \ilRadioOption($lng->txt("svy_self_ev_access_results_all"), (string) \ilObjSurvey::RESULTS_SELF_EVAL_ALL);
50 $evaluation_access->addOption($option);
51
52 $items[] = $evaluation_access;
53
54 return $items;
55 }
const RESULTS_SELF_EVAL_NONE
const RESULTS_SELF_EVAL_ALL
const RESULTS_SELF_EVAL_OWN
global $lng
Definition: privfeed.php:31

◆ setValuesFromForm()

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

Reimplemented from ILIAS\Survey\Mode\AbstractUIModifier.

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

60 : void {
61 $survey->setSelfEvaluationResults((int) $form->getInput("self_eval_res"));
62 }

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