ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 152 of file class.ilQTIResponseVar.php.

References $areatype.

153  {
154  return $this->areatype;
155  }

◆ getCase()

ilQTIResponseVar::getCase ( )

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

References $case.

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

◆ getContent()

ilQTIResponseVar::getContent ( )

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

References $content.

163  {
164  return $this->content;
165  }

◆ getIndex()

ilQTIResponseVar::getIndex ( )

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

References $index.

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

◆ getRespident()

ilQTIResponseVar::getRespident ( )

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

References $respident.

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

◆ getSetmatch()

ilQTIResponseVar::getSetmatch ( )

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

References $setmatch.

130  {
131  return $this->setmatch;
132  }

◆ 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 134 of file class.ilQTIResponseVar.php.

References AREATYPE_BOUNDED, AREATYPE_ELLIPSE, and AREATYPE_RECTANGLE.

135  {
136  switch (strtolower($a_areatype)) {
137  case "1":
138  case "ellipse":
139  $this->areatype = AREATYPE_ELLIPSE;
140  break;
141  case "2":
142  case "rectangle":
143  $this->areatype = AREATYPE_RECTANGLE;
144  break;
145  case "3":
146  case "bounded":
147  $this->areatype = AREATYPE_BOUNDED;
148  break;
149  }
150  }
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  case "1":
80  case "yes":
81  $this->case = CASE_YES;
82  break;
83  case "2":
84  case "no":
85  $this->case = CASE_NO;
86  break;
87  }
88  }
const CASE_NO
const CASE_YES

◆ setContent()

ilQTIResponseVar::setContent (   $a_content)

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

References $a_content.

158  {
159  $this->content = $a_content;
160  }
$a_content
Definition: workflow.php:93

◆ setIndex()

ilQTIResponseVar::setIndex (   $a_index)

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

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

◆ setRespident()

ilQTIResponseVar::setRespident (   $a_respident)

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

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

◆ setSetmatch()

ilQTIResponseVar::setSetmatch (   $a_setmatch)

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

References SETMATCH_EXACT, and SETMATCH_PARTIAL.

116  {
117  switch (strtolower($a_setmatch)) {
118  case "1":
119  case "partial":
120  $this->setmatch = SETMATCH_PARTIAL;
121  break;
122  case "2":
123  case "exact":
124  $this->setmatch = SETMATCH_EXACT;
125  break;
126  }
127  }
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: