ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilQTIResponse Class Reference
+ Collaboration diagram for ilQTIResponse:

Public Member Functions

 ilQTIResponse ($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.

Member Function Documentation

◆ getFlow()

ilQTIResponse::getFlow ( )

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

172 {
173 return $this->flow;
174 }

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 181 of file class.ilQTIResponse.php.

182 {
183 return $this->material1;
184 }

References $material1.

◆ getMaterial2()

ilQTIResponse::getMaterial2 ( )

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

192 {
193 return $this->material2;
194 }

References $material2.

◆ getNumtype()

ilQTIResponse::getNumtype ( )

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

152 {
153 return $this->numtype;
154 }

References $numtype.

◆ getRCardinality()

ilQTIResponse::getRCardinality ( )

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

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

References $rcardinality.

◆ getRenderType()

ilQTIResponse::getRenderType ( )

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

162 {
163 return $this->render_type;
164 }

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 127 of file class.ilQTIResponse.php.

128 {
129 return $this->rtiming;
130 }

References $rtiming.

◆ hasRendering()

ilQTIResponse::hasRendering ( )

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

197 {
198 if ($this->render_type != NULL)
199 {
200 return TRUE;
201 }
202 else
203 {
204 return FALSE;
205 }
206 }

◆ ilQTIResponse()

ilQTIResponse::ilQTIResponse (   $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 }

◆ setFlow()

ilQTIResponse::setFlow (   $a_flow)

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

167 {
168 $this->flow = $a_flow;
169 }

◆ 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 176 of file class.ilQTIResponse.php.

177 {
178 $this->material1 = $a_material;
179 }

◆ setMaterial2()

ilQTIResponse::setMaterial2 (   $a_material)

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

187 {
188 $this->material2 = $a_material;
189 }

◆ setNumtype()

ilQTIResponse::setNumtype (   $a_numtype)

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

133 {
134 switch (strtolower($a_numtype))
135 {
136 case "integer":
137 case "1":
138 $this->numtype = NUMTYPE_INTEGER;
139 break;
140 case "decimal":
141 case "2":
142 $this->numtype = NUMTYPE_DECIMAL;
143 break;
144 case "scientific":
145 case "3":
146 $this->numtype = NUMTYPE_SCIENTIFIC;
147 break;
148 }
149 }
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 {
92 case "single":
93 case "1":
94 $this->rcardinality = R_CARDINALITY_SINGLE;
95 break;
96 case "multiple":
97 case "2":
98 $this->rcardinality = R_CARDINALITY_MULTIPLE;
99 break;
100 case "ordered":
101 case "3":
102 $this->rcardinality = R_CARDINALITY_ORDERED;
103 break;
104 }
105 }
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 156 of file class.ilQTIResponse.php.

157 {
158 $this->render_type = $a_render_type;
159 }

◆ 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 112 of file class.ilQTIResponse.php.

113 {
114 switch (strtolower($a_rtiming))
115 {
116 case "no":
117 case "1":
118 $this->rtiming = RTIMING_NO;
119 break;
120 case "yes":
121 case "2":
122 $this->rtiming = RTIMING_YES;
123 break;
124 }
125 }
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: