ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilQTIResponseVar.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
define(
"RESPONSEVAR_EQUAL"
,
"1"
);
25
define(
"RESPONSEVAR_LT"
,
"2"
);
26
define(
"RESPONSEVAR_LTE"
,
"3"
);
27
define(
"RESPONSEVAR_GT"
,
"4"
);
28
define(
"RESPONSEVAR_GTE"
,
"5"
);
29
define(
"RESPONSEVAR_SUBSET"
,
"6"
);
30
define(
"RESPONSEVAR_INSIDE"
,
"7"
);
31
define(
"RESPONSEVAR_SUBSTRING"
,
"8"
);
32
33
define(
"CASE_YES"
,
"1"
);
34
define(
"CASE_NO"
,
"2"
);
35
36
define(
"SETMATCH_PARTIAL"
,
"1"
);
37
define(
"SETMATCH_EXACT"
,
"2"
);
38
39
define(
"AREATYPE_ELLIPSE"
,
"1"
);
40
define(
"AREATYPE_RECTANGLE"
,
"2"
);
41
define(
"AREATYPE_BOUNDED"
,
"3"
);
42
51
class
ilQTIResponseVar
52
{
53
public
$vartype
;
54
public
$case
;
55
public
$respident
;
56
public
$index
;
57
public
$setmatch
;
58
public
$areatype
;
59
public
$content
;
60
61
public
function
__construct
($a_vartype)
62
{
63
$this->
setVartype
($a_vartype);
64
}
65
66
public
function
setVartype
($a_vartype)
67
{
68
$this->vartype = $a_vartype;
69
}
70
71
public
function
getVartype
()
72
{
73
return
$this->vartype
;
74
}
75
76
public
function
setCase
($a_case)
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
}
89
90
public
function
getCase
()
91
{
92
return
$this->case
;
93
}
94
95
public
function
setRespident
($a_respident)
96
{
97
$this->respident = $a_respident;
98
}
99
100
public
function
getRespident
()
101
{
102
return
$this->respident
;
103
}
104
105
public
function
setIndex
($a_index)
106
{
107
$this->index = $a_index;
108
}
109
110
public
function
getIndex
()
111
{
112
return
$this->index
;
113
}
114
115
public
function
setSetmatch
($a_setmatch)
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
}
128
129
public
function
getSetmatch
()
130
{
131
return
$this->setmatch
;
132
}
133
134
public
function
setAreatype
($a_areatype)
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
}
151
152
public
function
getAreatype
()
153
{
154
return
$this->areatype
;
155
}
156
157
public
function
setContent
(
$a_content
)
158
{
159
$this->content =
$a_content
;
160
}
161
162
public
function
getContent
()
163
{
164
return
$this->content
;
165
}
166
}
ilQTIResponseVar\setRespident
setRespident($a_respident)
Definition:
class.ilQTIResponseVar.php:95
ilQTIResponseVar\setCase
setCase($a_case)
Definition:
class.ilQTIResponseVar.php:76
ilQTIResponseVar\$vartype
$vartype
Definition:
class.ilQTIResponseVar.php:53
ilQTIResponseVar\$content
$content
Definition:
class.ilQTIResponseVar.php:59
AREATYPE_RECTANGLE
const AREATYPE_RECTANGLE
Definition:
class.ilQTIResponseVar.php:40
ilQTIResponseVar\setSetmatch
setSetmatch($a_setmatch)
Definition:
class.ilQTIResponseVar.php:115
ilQTIResponseVar\getRespident
getRespident()
Definition:
class.ilQTIResponseVar.php:100
AREATYPE_ELLIPSE
const AREATYPE_ELLIPSE
Definition:
class.ilQTIResponseVar.php:39
ilQTIResponseVar\getCase
getCase()
Definition:
class.ilQTIResponseVar.php:90
ilQTIResponseVar\$case
$case
Definition:
class.ilQTIResponseVar.php:54
ilQTIResponseVar\setIndex
setIndex($a_index)
Definition:
class.ilQTIResponseVar.php:105
ilQTIResponseVar\getAreatype
getAreatype()
Definition:
class.ilQTIResponseVar.php:152
$a_content
$a_content
Definition:
workflow.php:93
SETMATCH_EXACT
const SETMATCH_EXACT
Definition:
class.ilQTIResponseVar.php:37
ilQTIResponseVar\getContent
getContent()
Definition:
class.ilQTIResponseVar.php:162
CASE_NO
const CASE_NO
Definition:
class.ilQTIResponseVar.php:34
ilQTIResponseVar\getIndex
getIndex()
Definition:
class.ilQTIResponseVar.php:110
ilQTIResponseVar\getSetmatch
getSetmatch()
Definition:
class.ilQTIResponseVar.php:129
CASE_YES
const CASE_YES
Definition:
class.ilQTIResponseVar.php:33
SETMATCH_PARTIAL
const SETMATCH_PARTIAL
Definition:
class.ilQTIResponseVar.php:36
ilQTIResponseVar\$respident
$respident
Definition:
class.ilQTIResponseVar.php:55
ilQTIResponseVar\setAreatype
setAreatype($a_areatype)
Definition:
class.ilQTIResponseVar.php:134
ilQTIResponseVar\$index
$index
Definition:
class.ilQTIResponseVar.php:56
ilQTIResponseVar\__construct
__construct($a_vartype)
Definition:
class.ilQTIResponseVar.php:61
ilQTIResponseVar\$areatype
$areatype
Definition:
class.ilQTIResponseVar.php:58
ilQTIResponseVar
Definition:
class.ilQTIResponseVar.php:51
AREATYPE_BOUNDED
const AREATYPE_BOUNDED
Definition:
class.ilQTIResponseVar.php:41
ilQTIResponseVar\setContent
setContent($a_content)
Definition:
class.ilQTIResponseVar.php:157
ilQTIResponseVar\getVartype
getVartype()
Definition:
class.ilQTIResponseVar.php:71
ilQTIResponseVar\$setmatch
$setmatch
Definition:
class.ilQTIResponseVar.php:57
ilQTIResponseVar\setVartype
setVartype($a_vartype)
Definition:
class.ilQTIResponseVar.php:66
Services
QTI
classes
class.ilQTIResponseVar.php
Generated on Tue Jan 28 2025 19:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)