• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

assessment/classes/QTI/class.ilQTIItemfeedback.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 define ("VIEW_ALL", "1");
00025 define ("VIEW_ADMINISTRATOR", "2");
00026 define ("VIEW_ADMINAUTHORITY", "3");
00027 define ("VIEW_ASSESSOR", "4");
00028 define ("VIEW_AUTHOR", "5");
00029 define ("VIEW_CANDIDATE", "6");
00030 define ("VIEW_INVIGILATORPROCTOR", "7");
00031 define ("VIEW_PSYCHOMETRICIAN", "8");
00032 define ("VIEW_SCORER", "9");
00033 define ("VIEW_TUTOR", "10");
00034 
00043 class ilQTIItemfeedback
00044 {
00045         var $view;
00046         var $ident;
00047         var $title;
00048         var $flow_mat;
00049         var $material;
00050         var $solution;
00051         var $hint;
00052         
00053         function ilQTIItemfeedback()
00054         {
00055                 $this->flow_mat = array();
00056                 $this->material = array();
00057                 $this->solution = array();
00058                 $this->hint = array();
00059         }
00060         
00061         function setView($a_view)
00062         {
00063                 switch (strtolower($a_view))
00064                 {
00065                         case "1":
00066                         case "all":
00067                                 $this->view = VIEW_ALL;
00068                                 break;
00069                         case "2":
00070                         case "administrator":
00071                                 $this->view = VIEW_ADMINISTRATOR;
00072                                 break;
00073                         case "3":
00074                         case "adminauthority":
00075                                 $this->view = VIEW_ADMINAUTHORITY;
00076                                 break;
00077                         case "4":
00078                         case "assessor":
00079                                 $this->view = VIEW_ASSESSOR;
00080                                 break;
00081                         case "5":
00082                         case "author":
00083                                 $this->view = VIEW_AUTHOR;
00084                                 break;
00085                         case "6":
00086                         case "candidate":
00087                                 $this->view = VIEW_CANDIDATE;
00088                                 break;
00089                         case "7":
00090                         case "invigilatorproctor":
00091                                 $this->view = VIEW_INVIGILATORPROCTOR;
00092                                 break;
00093                         case "8":
00094                         case "psychometrician":
00095                                 $this->view = VIEW_PSYCHOMETRICIAN;
00096                                 break;
00097                         case "9":
00098                         case "scorer":
00099                                 $this->view = VIEW_SCORER;
00100                                 break;
00101                         case "10":
00102                         case "tutor":
00103                                 $this->view = VIEW_TUTOR;
00104                                 break;
00105                 }
00106         }
00107         
00108         function getView()
00109         {
00110                 return $this->view;
00111         }
00112         
00113         function setIdent($a_ident)
00114         {
00115                 $this->ident = $a_ident;
00116         }
00117         
00118         function getIdent()
00119         {
00120                 return $this->ident;
00121         }
00122         
00123         function setTitle($a_title)
00124         {
00125                 $this->title = $a_title;
00126         }
00127         
00128         function getTitle()
00129         {
00130                 return $this->title;
00131         }
00132         
00133         function addFlow_mat($a_flow_mat)
00134         {
00135                 array_push($this->flow_mat, $a_flow_mat);
00136         }
00137         
00138         function addMaterial($a_material)
00139         {
00140                 array_push($this->material, $a_material);
00141         }
00142         
00143         function addSolution($a_solution)
00144         {
00145                 array_push($this->solution, $a_solution);
00146         }
00147         
00148         function addHint($a_hint)
00149         {
00150                 array_push($this->hint, $a_hint);
00151         }
00152 }
00153 ?>

Generated on Fri Dec 13 2013 13:52:06 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1