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