ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilQTIItemfeedback.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 ("VIEW_ALL", "1");
25 define ("VIEW_ADMINISTRATOR", "2");
26 define ("VIEW_ADMINAUTHORITY", "3");
27 define ("VIEW_ASSESSOR", "4");
28 define ("VIEW_AUTHOR", "5");
29 define ("VIEW_CANDIDATE", "6");
30 define ("VIEW_INVIGILATORPROCTOR", "7");
31 define ("VIEW_PSYCHOMETRICIAN", "8");
32 define ("VIEW_SCORER", "9");
33 define ("VIEW_TUTOR", "10");
34 
44 {
45  var $view;
46  var $ident;
47  var $title;
48  var $flow_mat;
49  var $material;
50  var $solution;
51  var $hint;
52 
53  function ilQTIItemfeedback()
54  {
55  $this->flow_mat = array();
56  $this->material = array();
57  $this->solution = array();
58  $this->hint = array();
59  }
60 
61  function setView($a_view)
62  {
63  switch (strtolower($a_view))
64  {
65  case "1":
66  case "all":
67  $this->view = VIEW_ALL;
68  break;
69  case "2":
70  case "administrator":
71  $this->view = VIEW_ADMINISTRATOR;
72  break;
73  case "3":
74  case "adminauthority":
75  $this->view = VIEW_ADMINAUTHORITY;
76  break;
77  case "4":
78  case "assessor":
79  $this->view = VIEW_ASSESSOR;
80  break;
81  case "5":
82  case "author":
83  $this->view = VIEW_AUTHOR;
84  break;
85  case "6":
86  case "candidate":
87  $this->view = VIEW_CANDIDATE;
88  break;
89  case "7":
90  case "invigilatorproctor":
91  $this->view = VIEW_INVIGILATORPROCTOR;
92  break;
93  case "8":
94  case "psychometrician":
95  $this->view = VIEW_PSYCHOMETRICIAN;
96  break;
97  case "9":
98  case "scorer":
99  $this->view = VIEW_SCORER;
100  break;
101  case "10":
102  case "tutor":
103  $this->view = VIEW_TUTOR;
104  break;
105  }
106  }
107 
108  function getView()
109  {
110  return $this->view;
111  }
112 
113  function setIdent($a_ident)
114  {
115  $this->ident = $a_ident;
116  }
117 
118  function getIdent()
119  {
120  return $this->ident;
121  }
122 
123  function setTitle($a_title)
124  {
125  $this->title = $a_title;
126  }
127 
128  function getTitle()
129  {
130  return $this->title;
131  }
132 
133  function addFlow_mat($a_flow_mat)
134  {
135  array_push($this->flow_mat, $a_flow_mat);
136  }
137 
138  function addMaterial($a_material)
139  {
140  array_push($this->material, $a_material);
141  }
142 
143  function addSolution($a_solution)
144  {
145  array_push($this->solution, $a_solution);
146  }
147 
148  function addHint($a_hint)
149  {
150  array_push($this->hint, $a_hint);
151  }
152 }
153 ?>