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