ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
33 {
34  public $hintswitch;
36  public $view;
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 }