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
00024 define ("VIEW_ALL", "1");
00025 define ("VIEW_ADMINISTRATOR", "2");
00026 define ("VIEW_ADMINAUTHORITY", "3");
00027 define ("VIEW_ASSESSOR", "4");
00028 define ("VIEW_AUTHOR", "5");
00029 define ("VIEW_CANDIDATE", "6");
00030 define ("VIEW_INVIGILATORPROCTOR", "7");
00031 define ("VIEW_PSYCHOMETRICIAN", "8");
00032 define ("VIEW_SCORER", "9");
00033 define ("VIEW_TUTOR", "10");
00034
00043 class ilQTIItemfeedback
00044 {
00045 var $view;
00046 var $ident;
00047 var $title;
00048 var $flow_mat;
00049 var $material;
00050 var $solution;
00051 var $hint;
00052
00053 function ilQTIItemfeedback()
00054 {
00055 $this->flow_mat = array();
00056 $this->material = array();
00057 $this->solution = array();
00058 $this->hint = array();
00059 }
00060
00061 function setView($a_view)
00062 {
00063 switch (strtolower($a_view))
00064 {
00065 case "1":
00066 case "all":
00067 $this->view = VIEW_ALL;
00068 break;
00069 case "2":
00070 case "administrator":
00071 $this->view = VIEW_ADMINISTRATOR;
00072 break;
00073 case "3":
00074 case "adminauthority":
00075 $this->view = VIEW_ADMINAUTHORITY;
00076 break;
00077 case "4":
00078 case "assessor":
00079 $this->view = VIEW_ASSESSOR;
00080 break;
00081 case "5":
00082 case "author":
00083 $this->view = VIEW_AUTHOR;
00084 break;
00085 case "6":
00086 case "candidate":
00087 $this->view = VIEW_CANDIDATE;
00088 break;
00089 case "7":
00090 case "invigilatorproctor":
00091 $this->view = VIEW_INVIGILATORPROCTOR;
00092 break;
00093 case "8":
00094 case "psychometrician":
00095 $this->view = VIEW_PSYCHOMETRICIAN;
00096 break;
00097 case "9":
00098 case "scorer":
00099 $this->view = VIEW_SCORER;
00100 break;
00101 case "10":
00102 case "tutor":
00103 $this->view = VIEW_TUTOR;
00104 break;
00105 }
00106 }
00107
00108 function getView()
00109 {
00110 return $this->view;
00111 }
00112
00113 function setIdent($a_ident)
00114 {
00115 $this->ident = $a_ident;
00116 }
00117
00118 function getIdent()
00119 {
00120 return $this->ident;
00121 }
00122
00123 function setTitle($a_title)
00124 {
00125 $this->title = $a_title;
00126 }
00127
00128 function getTitle()
00129 {
00130 return $this->title;
00131 }
00132
00133 function addFlow_mat($a_flow_mat)
00134 {
00135 array_push($this->flow_mat, $a_flow_mat);
00136 }
00137
00138 function addMaterial($a_material)
00139 {
00140 array_push($this->material, $a_material);
00141 }
00142
00143 function addSolution($a_solution)
00144 {
00145 array_push($this->solution, $a_solution);
00146 }
00147
00148 function addHint($a_hint)
00149 {
00150 array_push($this->hint, $a_hint);
00151 }
00152 }
00153 ?>