ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilQTIAssessmentcontrol.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
32
class
ilQTIAssessmentcontrol
33
{
34
var
$hintswitch
;
35
var
$solutionswitch
;
36
var
$view
;
37
var
$feedbackswitch
;
38
39
function
__construct
()
40
{
41
$this->hintswitch =
""
;
42
$this->solutionswitch =
""
;
43
$this->view =
"All"
;
44
$this->feedbackswitch =
""
;
45
}
46
47
function
setView
($a_view)
48
{
49
switch
($a_view)
50
{
51
case
"Administrator"
:
52
case
"AdminAuthority"
:
53
case
"Assessor"
:
54
case
"Author"
:
55
case
"Candidate"
:
56
case
"InvigilatorProctor"
:
57
case
"Psychometrician"
:
58
case
"Scorer"
:
59
case
"Tutor"
:
60
$this->view = $a_view;
61
break
;
62
default
:
63
$this->view =
"All"
;
64
break
;
65
}
66
}
67
68
function
getView
()
69
{
70
return
$this->view
;
71
}
72
73
function
setHintswitch
($a_hintswitch)
74
{
75
switch
($a_hintswitch)
76
{
77
case
"Yes"
:
78
case
"No"
:
79
$this->hintswitch = $a_hintswitch;
80
break
;
81
default
:
82
$this->hintswitch =
"Yes"
;
83
break
;
84
}
85
}
86
87
function
getHintswitch
()
88
{
89
return
$this->hintswitch
;
90
}
91
92
function
setSolutionswitch
($a_solutionswitch)
93
{
94
switch
($a_solutionswitch)
95
{
96
case
"Yes"
:
97
case
"No"
:
98
$this->solutionswitch = $a_solutionswitch;
99
break
;
100
default
:
101
$this->solutionswitch =
"Yes"
;
102
break
;
103
}
104
}
105
106
function
getSolutionswitch
()
107
{
108
return
$this->solutionswitch
;
109
}
110
111
function
setFeedbackswitch
($a_feedbackswitch)
112
{
113
switch
($a_feedbackswitch)
114
{
115
case
"Yes"
:
116
case
"No"
:
117
$this->feedbackswitch = $a_feedbackswitch;
118
break
;
119
default
:
120
$this->feedbackswitch =
"Yes"
;
121
break
;
122
}
123
}
124
125
function
getFeedbackswitch
()
126
{
127
return
$this->feedbackswitch
;
128
}
129
130
}
131
?>
ilQTIAssessmentcontrol\setSolutionswitch
setSolutionswitch($a_solutionswitch)
Definition:
class.ilQTIAssessmentcontrol.php:92
ilQTIAssessmentcontrol\setHintswitch
setHintswitch($a_hintswitch)
Definition:
class.ilQTIAssessmentcontrol.php:73
ilQTIAssessmentcontrol
Definition:
class.ilQTIAssessmentcontrol.php:32
ilQTIAssessmentcontrol\setFeedbackswitch
setFeedbackswitch($a_feedbackswitch)
Definition:
class.ilQTIAssessmentcontrol.php:111
ilQTIAssessmentcontrol\setView
setView($a_view)
Definition:
class.ilQTIAssessmentcontrol.php:47
ilQTIAssessmentcontrol\getFeedbackswitch
getFeedbackswitch()
Definition:
class.ilQTIAssessmentcontrol.php:125
ilQTIAssessmentcontrol\getSolutionswitch
getSolutionswitch()
Definition:
class.ilQTIAssessmentcontrol.php:106
ilQTIAssessmentcontrol\getView
getView()
Definition:
class.ilQTIAssessmentcontrol.php:68
ilQTIAssessmentcontrol\$solutionswitch
$solutionswitch
Definition:
class.ilQTIAssessmentcontrol.php:35
ilQTIAssessmentcontrol\$hintswitch
$hintswitch
Definition:
class.ilQTIAssessmentcontrol.php:34
ilQTIAssessmentcontrol\getHintswitch
getHintswitch()
Definition:
class.ilQTIAssessmentcontrol.php:87
ilQTIAssessmentcontrol\$feedbackswitch
$feedbackswitch
Definition:
class.ilQTIAssessmentcontrol.php:37
php
ilQTIAssessmentcontrol\__construct
__construct()
Definition:
class.ilQTIAssessmentcontrol.php:39
ilQTIAssessmentcontrol\$view
$view
Definition:
class.ilQTIAssessmentcontrol.php:36
Services
QTI
classes
class.ilQTIAssessmentcontrol.php
Generated on Fri Jan 17 2025 19:01:15 for ILIAS by
1.8.13 (using
Doxyfile
)