ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 171 of file class.ilQTIResponse.php.

References $flow.

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

◆ getIdent()

ilQTIResponse::getIdent ( )

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

References $ident.

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

◆ getMaterial1()

ilQTIResponse::getMaterial1 ( )

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

References $material1.

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

◆ getMaterial2()

ilQTIResponse::getMaterial2 ( )

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

References $material2.

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

◆ getNumtype()

ilQTIResponse::getNumtype ( )

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

References $numtype.

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

◆ getRCardinality()

ilQTIResponse::getRCardinality ( )

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

References $rcardinality.

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

◆ getRenderType()

ilQTIResponse::getRenderType ( )

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

References $render_type.

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

◆ getResponsetype()

ilQTIResponse::getResponsetype ( )

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

References $response_type.

74  {
75  return $this->response_type;
76  }

◆ getRTiming()

ilQTIResponse::getRTiming ( )

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

References $rtiming.

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

◆ 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  }

◆ 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.

References NUMTYPE_DECIMAL, NUMTYPE_INTEGER, and NUMTYPE_SCIENTIFIC.

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_DECIMAL
const NUMTYPE_INTEGER
const NUMTYPE_SCIENTIFIC

◆ setRCardinality()

ilQTIResponse::setRCardinality (   $a_rcardinality)

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

References R_CARDINALITY_MULTIPLE, R_CARDINALITY_ORDERED, and R_CARDINALITY_SINGLE.

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_ORDERED
const R_CARDINALITY_SINGLE
const R_CARDINALITY_MULTIPLE

◆ 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.

References RTIMING_NO, and RTIMING_YES.

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_YES
const RTIMING_NO

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: