ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
var
$vartype
;
54
var
$case
;
55
var
$respident
;
56
var
$index
;
57
var
$setmatch
;
58
var
$areatype
;
59
var
$content
;
60
61
function
__construct
($a_vartype)
62
{
63
$this->
setVartype
($a_vartype);
64
}
65
66
function
setVartype
($a_vartype)
67
{
68
$this->vartype = $a_vartype;
69
}
70
71
function
getVartype
()
72
{
73
return
$this->vartype
;
74
}
75
76
function
setCase
($a_case)
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
}
90
91
function
getCase
()
92
{
93
return
$this->case
;
94
}
95
96
function
setRespident
($a_respident)
97
{
98
$this->respident = $a_respident;
99
}
100
101
function
getRespident
()
102
{
103
return
$this->respident
;
104
}
105
106
function
setIndex
($a_index)
107
{
108
$this->index = $a_index;
109
}
110
111
function
getIndex
()
112
{
113
return
$this->index
;
114
}
115
116
function
setSetmatch
($a_setmatch)
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
}
130
131
function
getSetmatch
()
132
{
133
return
$this->setmatch
;
134
}
135
136
function
setAreatype
($a_areatype)
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
}
154
155
function
getAreatype
()
156
{
157
return
$this->areatype
;
158
}
159
160
function
setContent
(
$a_content
)
161
{
162
$this->content =
$a_content
;
163
}
164
165
function
getContent
()
166
{
167
return
$this->content
;
168
}
169
}
170
?>
ilQTIResponseVar\setRespident
setRespident($a_respident)
Definition:
class.ilQTIResponseVar.php:96
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:116
ilQTIResponseVar\getRespident
getRespident()
Definition:
class.ilQTIResponseVar.php:101
AREATYPE_ELLIPSE
const AREATYPE_ELLIPSE
Definition:
class.ilQTIResponseVar.php:39
ilQTIResponseVar\getCase
getCase()
Definition:
class.ilQTIResponseVar.php:91
ilQTIResponseVar\$case
$case
Definition:
class.ilQTIResponseVar.php:54
ilQTIResponseVar\setIndex
setIndex($a_index)
Definition:
class.ilQTIResponseVar.php:106
ilQTIResponseVar\getAreatype
getAreatype()
Definition:
class.ilQTIResponseVar.php:155
$a_content
$a_content
Definition:
workflow.php:94
SETMATCH_EXACT
const SETMATCH_EXACT
Definition:
class.ilQTIResponseVar.php:37
ilQTIResponseVar\getContent
getContent()
Definition:
class.ilQTIResponseVar.php:165
CASE_NO
const CASE_NO
Definition:
class.ilQTIResponseVar.php:34
ilQTIResponseVar\getIndex
getIndex()
Definition:
class.ilQTIResponseVar.php:111
ilQTIResponseVar\getSetmatch
getSetmatch()
Definition:
class.ilQTIResponseVar.php:131
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:136
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
php
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:160
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 Fri Jan 17 2025 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)