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

assessment/classes/class.ilQTIRespcondition.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 ("CONTINUE_YES", "1");
00025 define ("CONTINUE_NO", "2");
00026 
00035 class ilQTIRespcondition
00036 {       
00037         var $continue;
00038         var $title;
00039         var $comment;
00040         var $conditionvar;
00041         var $setvar;
00042         var $displayfeedback;
00043         var $respcond_extension;
00044         
00045         function ilQTIRespcondition()
00046         {
00047                 $this->setvar = array();
00048                 $this->displayfeedback = array();
00049         }
00050         
00051         function setContinue($a_continue)
00052         {
00053                 switch (strtolower($a_continue))
00054                 {
00055                         case "1":
00056                         case "yes":
00057                                 $this->continue = CONTINUE_YES;
00058                                 break;
00059                         case "2":
00060                         case "no":
00061                                 $this->continue = CONTINUE_NO;
00062                                 break;
00063                 }
00064         }
00065         
00066         function getContinue()
00067         {
00068                 return $this->continue;
00069         }
00070         
00071         function setTitle($a_title)
00072         {
00073                 $this->title = $a_title;
00074         }
00075         
00076         function getTitle()
00077         {
00078                 return $this->title;
00079         }
00080         
00081         function setComment($a_comment)
00082         {
00083                 $this->comment = $a_comment;
00084         }
00085         
00086         function getComment()
00087         {
00088                 return $this->comment;
00089         }
00090         
00091         function setConditionvar($a_conditionvar)
00092         {
00093                 $this->conditionvar = $a_conditionvar;
00094         }
00095         
00096         function getConditionvar()
00097         {
00098                 return $this->conditionvar;
00099         }
00100         
00101         function setRespcond_extension($a_respcond_extension)
00102         {
00103                 $this->respcond_extension = $a_respcond_extension;
00104         }
00105         
00106         function getRespcond_extension()
00107         {
00108                 return $this->respcond_extension;
00109         }
00110         
00111         function addSetvar($a_setvar)
00112         {
00113                 array_push($this->setvar, $a_setvar);
00114         }
00115         
00116         function addDisplayfeedback($a_displayfeedback)
00117         {
00118                 array_push($this->displayfeedback, $a_displayfeedback);
00119         }
00120 }
00121 ?>

Generated on Fri Dec 13 2013 10:18:26 for ILIAS Release_3_5_x_branch .rev 46805 by  doxygen 1.7.1