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 ("CONTINUE_YES", "1");
00025 define ("CONTINUE_NO", "2");
00026
00035 class ilQTIRespcondition
00036 {
00037 var $continue;
00038 var $title;
00039 var $comment;
00040 var $conditionvar;
00041 var $setvar;
00042 var $displayfeedback;
00043 var $respcond_extension;
00044
00045 function ilQTIRespcondition()
00046 {
00047 $this->setvar = array();
00048 $this->displayfeedback = array();
00049 }
00050
00051 function setContinue($a_continue)
00052 {
00053 switch (strtolower($a_continue))
00054 {
00055 case "1":
00056 case "yes":
00057 $this->continue = CONTINUE_YES;
00058 break;
00059 case "2":
00060 case "no":
00061 $this->continue = CONTINUE_NO;
00062 break;
00063 }
00064 }
00065
00066 function getContinue()
00067 {
00068 return $this->continue;
00069 }
00070
00071 function setTitle($a_title)
00072 {
00073 $this->title = $a_title;
00074 }
00075
00076 function getTitle()
00077 {
00078 return $this->title;
00079 }
00080
00081 function setComment($a_comment)
00082 {
00083 $this->comment = $a_comment;
00084 }
00085
00086 function getComment()
00087 {
00088 return $this->comment;
00089 }
00090
00091 function setConditionvar($a_conditionvar)
00092 {
00093 $this->conditionvar = $a_conditionvar;
00094 }
00095
00096 function getConditionvar()
00097 {
00098 return $this->conditionvar;
00099 }
00100
00101 function setRespcond_extension($a_respcond_extension)
00102 {
00103 $this->respcond_extension = $a_respcond_extension;
00104 }
00105
00106 function getRespcond_extension()
00107 {
00108 return $this->respcond_extension;
00109 }
00110
00111 function addSetvar($a_setvar)
00112 {
00113 array_push($this->setvar, $a_setvar);
00114 }
00115
00116 function addDisplayfeedback($a_displayfeedback)
00117 {
00118 array_push($this->displayfeedback, $a_displayfeedback);
00119 }
00120 }
00121 ?>