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

Services/QTI/classes/class.ilQTIAssessmentcontrol.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 
00032 class ilQTIAssessmentcontrol
00033 {
00034         var $hintswitch;
00035         var $solutionswitch;
00036         var $view;
00037         var $feedbackswitch;
00038         
00039         function ilQTIAssessmentcontrol()
00040         {
00041                 $this->hintswitch = "";
00042                 $this->solutionswitch = "";
00043                 $this->view = "All";
00044                 $this->feedbackswitch = "";
00045         }
00046         
00047         function setView($a_view)
00048         {
00049                 switch ($a_view)
00050                 {
00051                         case "Administrator":
00052                         case "AdminAuthority":
00053                         case "Assessor":
00054                         case "Author":
00055                         case "Candidate":
00056                         case "InvigilatorProctor":
00057                         case "Psychometrician":
00058                         case "Scorer":
00059                         case "Tutor":
00060                                 $this->view = $a_view;
00061                                 break;
00062                         default:
00063                                 $this->view = "All";
00064                                 break;
00065                 }
00066         }
00067         
00068         function getView()
00069         {
00070                 return $this->view;
00071         }
00072 
00073         function setHintswitch($a_hintswitch)
00074         {
00075                 switch ($a_hintswitch)
00076                 {
00077                         case "Yes":
00078                         case "No":
00079                                 $this->hintswitch = $a_hintswitch;
00080                                 break;
00081                         default:
00082                                 $this->hintswitch = "Yes";
00083                                 break;
00084                 }
00085         }
00086         
00087         function getHintswitch()
00088         {
00089                 return $this->hintswitch;
00090         }
00091         
00092         function setSolutionswitch($a_solutionswitch)
00093         {
00094                 switch ($a_solutionswitch)
00095                 {
00096                         case "Yes":
00097                         case "No":
00098                                 $this->solutionswitch = $a_solutionswitch;
00099                                 break;
00100                         default:
00101                                 $this->solutionswitch = "Yes";
00102                                 break;
00103                 }
00104         }
00105         
00106         function getSolutionswitch()
00107         {
00108                 return $this->solutionswitch;
00109         }
00110 
00111         function setFeedbackswitch($a_feedbackswitch)
00112         {
00113                 switch ($a_feedbackswitch)
00114                 {
00115                         case "Yes":
00116                         case "No":
00117                                 $this->feedbackswitch = $a_feedbackswitch;
00118                                 break;
00119                         default:
00120                                 $this->feedbackswitch = "Yes";
00121                                 break;
00122                 }
00123         }
00124         
00125         function getFeedbackswitch()
00126         {
00127                 return $this->feedbackswitch;
00128         }
00129         
00130 }
00131 ?>

Generated on Fri Dec 13 2013 17:57:00 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1