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 require_once "./assessment/classes/class.assAnswerBinaryState.php";
00025
00037 class ASS_AnswerCloze extends ASS_AnswerBinaryState {
00046 var $cloze_type;
00047
00056 var $name;
00057
00058 var $shuffle;
00059
00072 function ASS_AnswerCloze (
00073 $answertext = "",
00074 $points = 0.0,
00075 $order = 0,
00076 $state = 0,
00077 $cloze_type = 0,
00078 $name = "",
00079 $shuffle = 1,
00080 $id = -1
00081 )
00082 {
00083 $this->ASS_AnswerBinaryState($answertext, $points, $order, $state, $id);
00084 $this->cloze_type = $cloze_type;
00085 $this->name = $name;
00086 $this->shuffle = $shuffle;
00087 }
00088
00089
00099 function get_cloze_type() {
00100 return $this->cloze_type;
00101 }
00102
00103 function get_shuffle() {
00104 return $this->shuffle;
00105 }
00106
00116 function set_cloze_type($cloze_type = 0) {
00117 $this->cloze_type = $cloze_type;
00118 }
00119
00129 function get_name() {
00130 return $this->name;
00131 }
00132
00142 function set_name($name = 0) {
00143 $this->name = $name;
00144 }
00145
00146 function set_shuffle($shuffle = 1) {
00147 $this->shuffle = $shuffle;
00148 }
00149 }
00150
00151 ?>