ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilQTIResponseVar Class Reference
+ Collaboration diagram for ilQTIResponseVar:

Public Member Functions

 __construct ($a_vartype)
 
 setVartype ($a_vartype)
 
 getVartype ()
 
 setCase ($a_case)
 
 getCase ()
 
 setRespident ($a_respident)
 
 getRespident ()
 
 setIndex ($a_index)
 
 getIndex ()
 
 setSetmatch ($a_setmatch)
 
 getSetmatch ()
 
 setAreatype ($a_areatype)
 
 getAreatype ()
 
 setContent ($a_content)
 
 getContent ()
 

Data Fields

 $vartype
 
 $case
 
 $respident
 
 $index
 
 $setmatch
 
 $areatype
 
 $content
 

Detailed Description

Definition at line 51 of file class.ilQTIResponseVar.php.

Constructor & Destructor Documentation

◆ __construct()

ilQTIResponseVar::__construct (   $a_vartype)

Definition at line 61 of file class.ilQTIResponseVar.php.

62 {
63 $this->setVartype($a_vartype);
64 }

References setVartype().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAreatype()

ilQTIResponseVar::getAreatype ( )

Definition at line 152 of file class.ilQTIResponseVar.php.

153 {
154 return $this->areatype;
155 }

References $areatype.

◆ getCase()

ilQTIResponseVar::getCase ( )

Definition at line 90 of file class.ilQTIResponseVar.php.

References $case.

◆ getContent()

ilQTIResponseVar::getContent ( )

Definition at line 162 of file class.ilQTIResponseVar.php.

163 {
164 return $this->content;
165 }

References $content.

◆ getIndex()

ilQTIResponseVar::getIndex ( )

Definition at line 110 of file class.ilQTIResponseVar.php.

111 {
112 return $this->index;
113 }

References $index.

◆ getRespident()

ilQTIResponseVar::getRespident ( )

Definition at line 100 of file class.ilQTIResponseVar.php.

101 {
102 return $this->respident;
103 }

References $respident.

◆ getSetmatch()

ilQTIResponseVar::getSetmatch ( )

Definition at line 129 of file class.ilQTIResponseVar.php.

130 {
131 return $this->setmatch;
132 }

References $setmatch.

◆ getVartype()

ilQTIResponseVar::getVartype ( )

Definition at line 71 of file class.ilQTIResponseVar.php.

References $vartype.

◆ setAreatype()

ilQTIResponseVar::setAreatype (   $a_areatype)

Definition at line 134 of file class.ilQTIResponseVar.php.

135 {
136 switch (strtolower($a_areatype)) {
137 case "1":
138 case "ellipse":
139 $this->areatype = AREATYPE_ELLIPSE;
140 break;
141 case "2":
142 case "rectangle":
143 $this->areatype = AREATYPE_RECTANGLE;
144 break;
145 case "3":
146 case "bounded":
147 $this->areatype = AREATYPE_BOUNDED;
148 break;
149 }
150 }
const AREATYPE_BOUNDED
const AREATYPE_RECTANGLE
const AREATYPE_ELLIPSE

References AREATYPE_BOUNDED, AREATYPE_ELLIPSE, and AREATYPE_RECTANGLE.

◆ setCase()

ilQTIResponseVar::setCase (   $a_case)

Definition at line 76 of file class.ilQTIResponseVar.php.

77 {
78 switch (strtolower($a_case)) {
79 case "1":
80 case "yes":
81 $this->case = CASE_YES;
82 break;
83 case "2":
84 case "no":
85 $this->case = CASE_NO;
86 break;
87 }
88 }
const CASE_YES
const CASE_NO

References CASE_NO, and CASE_YES.

◆ setContent()

ilQTIResponseVar::setContent (   $a_content)

Definition at line 157 of file class.ilQTIResponseVar.php.

158 {
159 $this->content = $a_content;
160 }
$a_content
Definition: workflow.php:93

References $a_content.

◆ setIndex()

ilQTIResponseVar::setIndex (   $a_index)

Definition at line 105 of file class.ilQTIResponseVar.php.

106 {
107 $this->index = $a_index;
108 }

◆ setRespident()

ilQTIResponseVar::setRespident (   $a_respident)

Definition at line 95 of file class.ilQTIResponseVar.php.

96 {
97 $this->respident = $a_respident;
98 }

◆ setSetmatch()

ilQTIResponseVar::setSetmatch (   $a_setmatch)

Definition at line 115 of file class.ilQTIResponseVar.php.

116 {
117 switch (strtolower($a_setmatch)) {
118 case "1":
119 case "partial":
120 $this->setmatch = SETMATCH_PARTIAL;
121 break;
122 case "2":
123 case "exact":
124 $this->setmatch = SETMATCH_EXACT;
125 break;
126 }
127 }
const SETMATCH_EXACT
const SETMATCH_PARTIAL

References SETMATCH_EXACT, and SETMATCH_PARTIAL.

◆ setVartype()

ilQTIResponseVar::setVartype (   $a_vartype)

Definition at line 66 of file class.ilQTIResponseVar.php.

67 {
68 $this->vartype = $a_vartype;
69 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $areatype

ilQTIResponseVar::$areatype

Definition at line 58 of file class.ilQTIResponseVar.php.

Referenced by getAreatype().

◆ $case

ilQTIResponseVar::$case

Definition at line 54 of file class.ilQTIResponseVar.php.

Referenced by getCase().

◆ $content

ilQTIResponseVar::$content

Definition at line 59 of file class.ilQTIResponseVar.php.

Referenced by getContent().

◆ $index

ilQTIResponseVar::$index

Definition at line 56 of file class.ilQTIResponseVar.php.

Referenced by getIndex().

◆ $respident

ilQTIResponseVar::$respident

Definition at line 55 of file class.ilQTIResponseVar.php.

Referenced by getRespident().

◆ $setmatch

ilQTIResponseVar::$setmatch

Definition at line 57 of file class.ilQTIResponseVar.php.

Referenced by getSetmatch().

◆ $vartype

ilQTIResponseVar::$vartype

Definition at line 53 of file class.ilQTIResponseVar.php.

Referenced by getVartype().


The documentation for this class was generated from the following file: