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 ("SHUFFLE_NO", "0");
00025 define ("SHUFFLE_YES", "1");
00026
00035 class ilQTIRenderChoice
00036 {
00037 var $shuffle;
00038 var $minnumber;
00039 var $maxnumber;
00040 var $response_labels;
00041 var $material;
00042
00043 function ilQTIRenderChoice()
00044 {
00045 $this->shuffle = SHUFFLE_NO;
00046 $this->response_labels = array();
00047 $this->material = array();
00048 }
00049
00050 function setShuffle($a_shuffle)
00051 {
00052 switch (strtolower($a_shuffle))
00053 {
00054 case "0":
00055 case "no":
00056 $this->shuffle = SHUFFLE_NO;
00057 break;
00058 case "1":
00059 case "yes":
00060 $this->shuffle = SHUFFLE_YES;
00061 break;
00062 }
00063 }
00064
00065 function getShuffle()
00066 {
00067 return $this->shuffle;
00068 }
00069
00070 function setMinnumber($a_minnumber)
00071 {
00072 $this->minnumber = $a_minnumber;
00073 }
00074
00075 function getMinnumber()
00076 {
00077 return $this->minnumber;
00078 }
00079
00080 function setMaxnumber($a_maxnumber)
00081 {
00082 $this->maxnumber = $a_maxnumber;
00083 }
00084
00085 function getMaxnumber()
00086 {
00087 return $this->maxnumber;
00088 }
00089
00090 function addResponseLabel($a_response_label)
00091 {
00092 array_push($this->response_labels, $a_response_label);
00093 }
00094
00095 function addMaterial($a_material)
00096 {
00097 array_push($this->material, $a_material);
00098 }
00099 }
00100 ?>