ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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.

References setVartype().

62  {
63  $this->setVartype($a_vartype);
64  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getAreatype()

ilQTIResponseVar::getAreatype ( )

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

References $areatype.

156  {
157  return $this->areatype;
158  }

◆ getCase()

ilQTIResponseVar::getCase ( )

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

References $case.

92  {
93  return $this->case;
94  }

◆ getContent()

ilQTIResponseVar::getContent ( )

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

References $content.

166  {
167  return $this->content;
168  }

◆ getIndex()

ilQTIResponseVar::getIndex ( )

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

References $index.

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

◆ getRespident()

ilQTIResponseVar::getRespident ( )

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

References $respident.

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

◆ getSetmatch()

ilQTIResponseVar::getSetmatch ( )

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

References $setmatch.

132  {
133  return $this->setmatch;
134  }

◆ getVartype()

ilQTIResponseVar::getVartype ( )

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

References $vartype.

72  {
73  return $this->vartype;
74  }

◆ setAreatype()

ilQTIResponseVar::setAreatype (   $a_areatype)

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

References AREATYPE_BOUNDED, AREATYPE_ELLIPSE, and AREATYPE_RECTANGLE.

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

◆ setCase()

ilQTIResponseVar::setCase (   $a_case)

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

References CASE_NO, and CASE_YES.

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

◆ setContent()

ilQTIResponseVar::setContent (   $a_content)

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

References $a_content.

161  {
162  $this->content = $a_content;
163  }
$a_content
Definition: workflow.php:94

◆ setIndex()

ilQTIResponseVar::setIndex (   $a_index)

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

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

◆ setRespident()

ilQTIResponseVar::setRespident (   $a_respident)

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

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

◆ setSetmatch()

ilQTIResponseVar::setSetmatch (   $a_setmatch)

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

References SETMATCH_EXACT, and SETMATCH_PARTIAL.

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

◆ setVartype()

ilQTIResponseVar::setVartype (   $a_vartype)

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

Referenced by __construct().

67  {
68  $this->vartype = $a_vartype;
69  }
+ 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: