ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilQTIResponse Class Reference
+ Collaboration diagram for ilQTIResponse:

Public Member Functions

 __construct ($a_response_type=0)
 
 setResponsetype ($a_responsetype)
 
 getResponsetype ()
 
 setIdent ($a_ident)
 
 getIdent ()
 
 setRCardinality ($a_rcardinality)
 
 getRCardinality ()
 
 setRTiming ($a_rtiming)
 
 getRTiming ()
 
 setNumtype ($a_numtype)
 
 getNumtype ()
 
 setRenderType ($a_render_type)
 
 getRenderType ()
 
 setFlow ($a_flow)
 
 getFlow ()
 
 setMaterial1 ($a_material)
 
 getMaterial1 ()
 
 setMaterial2 ($a_material)
 
 getMaterial2 ()
 
 hasRendering ()
 

Data Fields

 $flow
 
 $response_type
 
 $ident
 
 $rcardinality
 
 $render_type
 
 $material1
 
 $material2
 
 $rtiming
 
 $numtype
 

Detailed Description

Definition at line 49 of file class.ilQTIResponse.php.

Constructor & Destructor Documentation

◆ __construct()

ilQTIResponse::__construct (   $a_response_type = 0)

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

62 {
63 $this->flow = 0;
64 $this->render_type = null;
65 $this->response_type = $a_response_type;
66 }

Member Function Documentation

◆ getFlow()

ilQTIResponse::getFlow ( )

Definition at line 168 of file class.ilQTIResponse.php.

169 {
170 return $this->flow;
171 }

References $flow.

◆ getIdent()

ilQTIResponse::getIdent ( )

Definition at line 83 of file class.ilQTIResponse.php.

84 {
85 return $this->ident;
86 }

References $ident.

◆ getMaterial1()

ilQTIResponse::getMaterial1 ( )

Definition at line 178 of file class.ilQTIResponse.php.

179 {
180 return $this->material1;
181 }

References $material1.

◆ getMaterial2()

ilQTIResponse::getMaterial2 ( )

Definition at line 188 of file class.ilQTIResponse.php.

189 {
190 return $this->material2;
191 }

References $material2.

◆ getNumtype()

ilQTIResponse::getNumtype ( )

Definition at line 148 of file class.ilQTIResponse.php.

149 {
150 return $this->numtype;
151 }

References $numtype.

◆ getRCardinality()

ilQTIResponse::getRCardinality ( )

Definition at line 106 of file class.ilQTIResponse.php.

107 {
108 return $this->rcardinality;
109 }

References $rcardinality.

◆ getRenderType()

ilQTIResponse::getRenderType ( )

Definition at line 158 of file class.ilQTIResponse.php.

159 {
160 return $this->render_type;
161 }

References $render_type.

◆ getResponsetype()

ilQTIResponse::getResponsetype ( )

Definition at line 73 of file class.ilQTIResponse.php.

74 {
76 }

References $response_type.

◆ getRTiming()

ilQTIResponse::getRTiming ( )

Definition at line 125 of file class.ilQTIResponse.php.

126 {
127 return $this->rtiming;
128 }

References $rtiming.

◆ hasRendering()

ilQTIResponse::hasRendering ( )

Definition at line 193 of file class.ilQTIResponse.php.

194 {
195 if ($this->render_type != null) {
196 return true;
197 } else {
198 return false;
199 }
200 }

◆ setFlow()

ilQTIResponse::setFlow (   $a_flow)

Definition at line 163 of file class.ilQTIResponse.php.

164 {
165 $this->flow = $a_flow;
166 }

◆ setIdent()

ilQTIResponse::setIdent (   $a_ident)

Definition at line 78 of file class.ilQTIResponse.php.

79 {
80 $this->ident = $a_ident;
81 }

◆ setMaterial1()

ilQTIResponse::setMaterial1 (   $a_material)

Definition at line 173 of file class.ilQTIResponse.php.

174 {
175 $this->material1 = $a_material;
176 }

◆ setMaterial2()

ilQTIResponse::setMaterial2 (   $a_material)

Definition at line 183 of file class.ilQTIResponse.php.

184 {
185 $this->material2 = $a_material;
186 }

◆ setNumtype()

ilQTIResponse::setNumtype (   $a_numtype)

Definition at line 130 of file class.ilQTIResponse.php.

131 {
132 switch (strtolower($a_numtype)) {
133 case "integer":
134 case "1":
135 $this->numtype = NUMTYPE_INTEGER;
136 break;
137 case "decimal":
138 case "2":
139 $this->numtype = NUMTYPE_DECIMAL;
140 break;
141 case "scientific":
142 case "3":
143 $this->numtype = NUMTYPE_SCIENTIFIC;
144 break;
145 }
146 }
const NUMTYPE_INTEGER
const NUMTYPE_DECIMAL
const NUMTYPE_SCIENTIFIC

References NUMTYPE_DECIMAL, NUMTYPE_INTEGER, and NUMTYPE_SCIENTIFIC.

◆ setRCardinality()

ilQTIResponse::setRCardinality (   $a_rcardinality)

Definition at line 88 of file class.ilQTIResponse.php.

89 {
90 switch (strtolower($a_rcardinality)) {
91 case "single":
92 case "1":
93 $this->rcardinality = R_CARDINALITY_SINGLE;
94 break;
95 case "multiple":
96 case "2":
97 $this->rcardinality = R_CARDINALITY_MULTIPLE;
98 break;
99 case "ordered":
100 case "3":
101 $this->rcardinality = R_CARDINALITY_ORDERED;
102 break;
103 }
104 }
const R_CARDINALITY_SINGLE
const R_CARDINALITY_ORDERED
const R_CARDINALITY_MULTIPLE

References R_CARDINALITY_MULTIPLE, R_CARDINALITY_ORDERED, and R_CARDINALITY_SINGLE.

◆ setRenderType()

ilQTIResponse::setRenderType (   $a_render_type)

Definition at line 153 of file class.ilQTIResponse.php.

154 {
155 $this->render_type = $a_render_type;
156 }

◆ setResponsetype()

ilQTIResponse::setResponsetype (   $a_responsetype)

Definition at line 68 of file class.ilQTIResponse.php.

69 {
70 $this->response_type = $a_responsetype;
71 }

◆ setRTiming()

ilQTIResponse::setRTiming (   $a_rtiming)

Definition at line 111 of file class.ilQTIResponse.php.

112 {
113 switch (strtolower($a_rtiming)) {
114 case "no":
115 case "1":
116 $this->rtiming = RTIMING_NO;
117 break;
118 case "yes":
119 case "2":
120 $this->rtiming = RTIMING_YES;
121 break;
122 }
123 }
const RTIMING_NO
const RTIMING_YES

References RTIMING_NO, and RTIMING_YES.

Field Documentation

◆ $flow

ilQTIResponse::$flow

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

Referenced by getFlow().

◆ $ident

ilQTIResponse::$ident

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

Referenced by getIdent().

◆ $material1

ilQTIResponse::$material1

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

Referenced by getMaterial1().

◆ $material2

ilQTIResponse::$material2

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

Referenced by getMaterial2().

◆ $numtype

ilQTIResponse::$numtype

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

Referenced by getNumtype().

◆ $rcardinality

ilQTIResponse::$rcardinality

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

Referenced by getRCardinality().

◆ $render_type

ilQTIResponse::$render_type

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

Referenced by getRenderType().

◆ $response_type

ilQTIResponse::$response_type

Definition at line 52 of file class.ilQTIResponse.php.

Referenced by getResponsetype().

◆ $rtiming

ilQTIResponse::$rtiming

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

Referenced by getRTiming().


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