Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00032 class ilQTIAssessmentcontrol
00033 {
00034 var $hintswitch;
00035 var $solutionswitch;
00036 var $view;
00037 var $feedbackswitch;
00038
00039 function ilQTIAssessmentcontrol()
00040 {
00041 $this->hintswitch = "";
00042 $this->solutionswitch = "";
00043 $this->view = "All";
00044 $this->feedbackswitch = "";
00045 }
00046
00047 function setView($a_view)
00048 {
00049 switch ($a_view)
00050 {
00051 case "Administrator":
00052 case "AdminAuthority":
00053 case "Assessor":
00054 case "Author":
00055 case "Candidate":
00056 case "InvigilatorProctor":
00057 case "Psychometrician":
00058 case "Scorer":
00059 case "Tutor":
00060 $this->view = $a_view;
00061 break;
00062 default:
00063 $this->view = "All";
00064 break;
00065 }
00066 }
00067
00068 function getView()
00069 {
00070 return $this->view;
00071 }
00072
00073 function setHintswitch($a_hintswitch)
00074 {
00075 switch ($a_hintswitch)
00076 {
00077 case "Yes":
00078 case "No":
00079 $this->hintswitch = $a_hintswitch;
00080 break;
00081 default:
00082 $this->hintswitch = "Yes";
00083 break;
00084 }
00085 }
00086
00087 function getHintswitch()
00088 {
00089 return $this->hintswitch;
00090 }
00091
00092 function setSolutionswitch($a_solutionswitch)
00093 {
00094 switch ($a_solutionswitch)
00095 {
00096 case "Yes":
00097 case "No":
00098 $this->solutionswitch = $a_solutionswitch;
00099 break;
00100 default:
00101 $this->solutionswitch = "Yes";
00102 break;
00103 }
00104 }
00105
00106 function getSolutionswitch()
00107 {
00108 return $this->solutionswitch;
00109 }
00110
00111 function setFeedbackswitch($a_feedbackswitch)
00112 {
00113 switch ($a_feedbackswitch)
00114 {
00115 case "Yes":
00116 case "No":
00117 $this->feedbackswitch = $a_feedbackswitch;
00118 break;
00119 default:
00120 $this->feedbackswitch = "Yes";
00121 break;
00122 }
00123 }
00124
00125 function getFeedbackswitch()
00126 {
00127 return $this->feedbackswitch;
00128 }
00129
00130 }
00131 ?>