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 ("RSHUFFLE_NO", "1");
00025 define ("RSHUFFLE_YES", "2");
00026
00027 define ("RAREA_ELLIPSE", "1");
00028 define ("RAREA_RECTANGLE", "2");
00029 define ("RAREA_BOUNDED", "3");
00030
00031 define ("RRANGE_EXACT", "1");
00032 define ("RRANGE_RANGE", "2");
00033
00042 class ilQTIResponseLabel
00043 {
00044 var $rshuffle;
00045 var $rarea;
00046 var $rrange;
00047 var $labelrefid;
00048 var $ident;
00049 var $match_group;
00050 var $match_max;
00051 var $material;
00052 var $flow_mat;
00053 var $content;
00054
00055 function ilQTIResponseLabel()
00056 {
00057 $this->material = array();
00058 $this->flow_mat = array();
00059 }
00060
00061 function setRshuffle($a_rshuffle)
00062 {
00063 switch (strtolower($a_rshuffle))
00064 {
00065 case "1":
00066 case "no":
00067 $this->rshuffle = RSHUFFLE_NO;
00068 break;
00069 case "2":
00070 case "yes":
00071 $this->rshuffle = RSHUFFLE_YES;
00072 break;
00073 }
00074 }
00075
00076 function getRshuffle()
00077 {
00078 return $this->rshuffle;
00079 }
00080
00081 function setRarea($a_rarea)
00082 {
00083 switch (strtolower($a_rarea))
00084 {
00085 case "1":
00086 case "ellipse":
00087 $this->rarea = RAREA_ELLIPSE;
00088 break;
00089 case "2":
00090 case "rectangle":
00091 $this->rarea = RAREA_RECTANGLE;
00092 break;
00093 case "3":
00094 case "bounded":
00095 $this->rarea = RAREA_BOUNDED;
00096 break;
00097 }
00098 }
00099
00100 function getRarea()
00101 {
00102 return $this->rarea;
00103 }
00104
00105 function setRrange($a_rrange)
00106 {
00107 switch (strtolower($a_rrange))
00108 {
00109 case "1":
00110 case "excact":
00111 $this->rshuffle = RRANGE_EXACT;
00112 break;
00113 case "2":
00114 case "range":
00115 $this->rshuffle = RRANGE_RANGE;
00116 break;
00117 }
00118 }
00119
00120 function getRrange()
00121 {
00122 return $this->rrange;
00123 }
00124
00125 function setLabelrefid($a_labelrefid)
00126 {
00127 $this->labelrefid = $a_labelrefid;
00128 }
00129
00130 function getLabelrefid()
00131 {
00132 return $this->labelrefid;
00133 }
00134
00135 function setIdent($a_ident)
00136 {
00137 $this->ident = $a_ident;
00138 }
00139
00140 function getIdent()
00141 {
00142 return $this->ident;
00143 }
00144
00145 function setMatchGroup($a_match_group)
00146 {
00147 $this->match_group = $a_match_group;
00148 }
00149
00150 function getMatchGroup()
00151 {
00152 return $this->match_group;
00153 }
00154
00155 function setMatchMax($a_match_max)
00156 {
00157 $this->match_max = $a_match_max;
00158 }
00159
00160 function getMatchMax()
00161 {
00162 return $this->match_max;
00163 }
00164
00165 function addMaterial($a_material)
00166 {
00167 array_push($this->material, $a_material);
00168 }
00169
00170 function addFlow_mat($a_flow_mat)
00171 {
00172 array_push($this->flow_mat, $a_flow_mat);
00173 }
00174
00175 function setContent($a_content)
00176 {
00177 $this->content = $a_content;
00178 }
00179
00180 function getContent()
00181 {
00182 return $this->content;
00183 }
00184 }
00185 ?>