ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilQTIResponseVar Class Reference
+ Collaboration diagram for ilQTIResponseVar:

Public Member Functions

 __construct (string $a_vartype)
 
 setVartype (string $a_vartype)
 
 getVartype ()
 
 setCase (string $a_case)
 
 getCase ()
 
 setRespident (string $a_respident)
 
 getRespident ()
 
 setIndex (string $a_index)
 
 getIndex ()
 
 setSetmatch (string $a_setmatch)
 
 getSetmatch ()
 
 setAreatype (string $a_areatype)
 
 getAreatype ()
 
 setContent (string $a_content)
 
 getContent ()
 

Data Fields

const RESPONSEVAR_EQUAL = "1"
 
const RESPONSEVAR_LT = "2"
 
const RESPONSEVAR_LTE = "3"
 
const RESPONSEVAR_GT = "4"
 
const RESPONSEVAR_GTE = "5"
 
const RESPONSEVAR_SUBSET = "6"
 
const RESPONSEVAR_INSIDE = "7"
 
const RESPONSEVAR_SUBSTRING = "8"
 
const CASE_YES = "1"
 
const CASE_NO = "2"
 
const SETMATCH_PARTIAL = "1"
 
const SETMATCH_EXACT = "2"
 
const AREATYPE_ELLIPSE = "1"
 
const AREATYPE_RECTANGLE = "2"
 
const AREATYPE_BOUNDED = "3"
 
string $vartype = ''
 
string $case = null
 
string $respident = null
 
string $index = null
 
string $setmatch = null
 
string $areatype = null
 
string $content = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIResponseVar::__construct ( string  $a_vartype)

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

References setVartype().

59  {
60  $this->setVartype($a_vartype);
61  }
setVartype(string $a_vartype)
+ Here is the call graph for this function:

Member Function Documentation

◆ getAreatype()

ilQTIResponseVar::getAreatype ( )

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

References $areatype.

149  : ?string
150  {
151  return $this->areatype;
152  }

◆ getCase()

ilQTIResponseVar::getCase ( )

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

References $case.

87  : ?string
88  {
89  return $this->case;
90  }

◆ getContent()

ilQTIResponseVar::getContent ( )

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

References $content.

159  : ?string
160  {
161  return $this->content;
162  }

◆ getIndex()

ilQTIResponseVar::getIndex ( )

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

References $index.

107  : ?string
108  {
109  return $this->index;
110  }

◆ getRespident()

ilQTIResponseVar::getRespident ( )

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

References $respident.

97  : ?string
98  {
99  return $this->respident;
100  }

◆ getSetmatch()

ilQTIResponseVar::getSetmatch ( )

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

References $setmatch.

126  : ?string
127  {
128  return $this->setmatch;
129  }

◆ getVartype()

ilQTIResponseVar::getVartype ( )

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

References $vartype.

Referenced by ilQTIConditionvar\addResponseVar().

68  : ?string
69  {
70  return $this->vartype;
71  }
+ Here is the caller graph for this function:

◆ setAreatype()

ilQTIResponseVar::setAreatype ( string  $a_areatype)

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

131  : void
132  {
133  switch (strtolower($a_areatype)) {
134  case "1":
135  case "ellipse":
136  $this->areatype = self::AREATYPE_ELLIPSE;
137  break;
138  case "2":
139  case "rectangle":
140  $this->areatype = self::AREATYPE_RECTANGLE;
141  break;
142  case "3":
143  case "bounded":
144  $this->areatype = self::AREATYPE_BOUNDED;
145  break;
146  }
147  }

◆ setCase()

ilQTIResponseVar::setCase ( string  $a_case)

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

73  : void
74  {
75  switch (strtolower($a_case)) {
76  case "1":
77  case "yes":
78  $this->case = self::CASE_YES;
79  break;
80  case "2":
81  case "no":
82  $this->case = self::CASE_NO;
83  break;
84  }
85  }

◆ setContent()

ilQTIResponseVar::setContent ( string  $a_content)

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

154  : void
155  {
156  $this->content = $a_content;
157  }

◆ setIndex()

ilQTIResponseVar::setIndex ( string  $a_index)

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

102  : void
103  {
104  $this->index = $a_index;
105  }

◆ setRespident()

ilQTIResponseVar::setRespident ( string  $a_respident)

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

92  : void
93  {
94  $this->respident = $a_respident;
95  }

◆ setSetmatch()

ilQTIResponseVar::setSetmatch ( string  $a_setmatch)

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

112  : void
113  {
114  switch (strtolower($a_setmatch)) {
115  case "1":
116  case "partial":
117  $this->setmatch = self::SETMATCH_PARTIAL;
118  break;
119  case "2":
120  case "exact":
121  $this->setmatch = self::SETMATCH_EXACT;
122  break;
123  }
124  }

◆ setVartype()

ilQTIResponseVar::setVartype ( string  $a_vartype)

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

Referenced by __construct().

63  : void
64  {
65  $this->vartype = $a_vartype;
66  }
+ Here is the caller graph for this function:

Field Documentation

◆ $areatype

string ilQTIResponseVar::$areatype = null

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

Referenced by getAreatype().

◆ $case

string ilQTIResponseVar::$case = null

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

Referenced by getCase().

◆ $content

string ilQTIResponseVar::$content = null

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

Referenced by getContent().

◆ $index

string ilQTIResponseVar::$index = null

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

Referenced by getIndex().

◆ $respident

string ilQTIResponseVar::$respident = null

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

Referenced by getRespident().

◆ $setmatch

string ilQTIResponseVar::$setmatch = null

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

Referenced by getSetmatch().

◆ $vartype

string ilQTIResponseVar::$vartype = ''

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

Referenced by getVartype().

◆ AREATYPE_BOUNDED

const ilQTIResponseVar::AREATYPE_BOUNDED = "3"

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

Referenced by ilQTIResponseVarTest\areaTypes().

◆ AREATYPE_ELLIPSE

const ilQTIResponseVar::AREATYPE_ELLIPSE = "1"

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

Referenced by ilQTIResponseVarTest\areaTypes().

◆ AREATYPE_RECTANGLE

const ilQTIResponseVar::AREATYPE_RECTANGLE = "2"

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

Referenced by ilQTIResponseVarTest\areaTypes().

◆ CASE_NO

const ilQTIResponseVar::CASE_NO = "2"

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

Referenced by ilQTIResponseVarTest\cases().

◆ CASE_YES

const ilQTIResponseVar::CASE_YES = "1"

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

Referenced by ilQTIResponseVarTest\cases().

◆ RESPONSEVAR_EQUAL

const ilQTIResponseVar::RESPONSEVAR_EQUAL = "1"

◆ RESPONSEVAR_GT

const ilQTIResponseVar::RESPONSEVAR_GT = "4"

◆ RESPONSEVAR_GTE

const ilQTIResponseVar::RESPONSEVAR_GTE = "5"

◆ RESPONSEVAR_INSIDE

const ilQTIResponseVar::RESPONSEVAR_INSIDE = "7"

◆ RESPONSEVAR_LT

const ilQTIResponseVar::RESPONSEVAR_LT = "2"

◆ RESPONSEVAR_LTE

const ilQTIResponseVar::RESPONSEVAR_LTE = "3"

◆ RESPONSEVAR_SUBSET

const ilQTIResponseVar::RESPONSEVAR_SUBSET = "6"

◆ RESPONSEVAR_SUBSTRING

const ilQTIResponseVar::RESPONSEVAR_SUBSTRING = "8"

◆ SETMATCH_EXACT

const ilQTIResponseVar::SETMATCH_EXACT = "2"

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

Referenced by ilQTIResponseVarTest\setMatches().

◆ SETMATCH_PARTIAL

const ilQTIResponseVar::SETMATCH_PARTIAL = "1"

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

Referenced by ilQTIResponseVarTest\setMatches().


The documentation for this class was generated from the following file: