ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

References $flow.

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

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

References $material1.

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

◆ getMaterial2()

ilQTIResponse::getMaterial2 ( )

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

References $material2.

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

◆ getNumtype()

ilQTIResponse::getNumtype ( )

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

References $numtype.

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

◆ getRCardinality()

ilQTIResponse::getRCardinality ( )

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

References $rcardinality.

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

◆ getRenderType()

ilQTIResponse::getRenderType ( )

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

References $render_type.

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

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

References $rtiming.

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

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

References NUMTYPE_DECIMAL, NUMTYPE_INTEGER, and NUMTYPE_SCIENTIFIC.

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

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

References RTIMING_NO, and RTIMING_YES.

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_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: