ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilQTIRespcondition.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 ("CONTINUE_YES", "1");
25 define ("CONTINUE_NO", "2");
26 
36 {
37  var $continue;
38  var $title;
39  var $comment;
41  var $setvar;
44 
45  function ilQTIRespcondition()
46  {
47  $this->setvar = array();
48  $this->displayfeedback = array();
49  }
50 
51  function setContinue($a_continue)
52  {
53  switch (strtolower($a_continue))
54  {
55  case "1":
56  case "yes":
57  $this->continue = CONTINUE_YES;
58  break;
59  case "2":
60  case "no":
61  $this->continue = CONTINUE_NO;
62  break;
63  }
64  }
65 
66  function getContinue()
67  {
68  return $this->continue;
69  }
70 
71  function setTitle($a_title)
72  {
73  $this->title = $a_title;
74  }
75 
76  function getTitle()
77  {
78  return $this->title;
79  }
80 
81  function setComment($a_comment)
82  {
83  $this->comment = $a_comment;
84  }
85 
86  function getComment()
87  {
88  return $this->comment;
89  }
90 
91  function setConditionvar($a_conditionvar)
92  {
93  $this->conditionvar = $a_conditionvar;
94  }
95 
96  function getConditionvar()
97  {
98  return $this->conditionvar;
99  }
100 
101  function setRespcond_extension($a_respcond_extension)
102  {
103  $this->respcond_extension = $a_respcond_extension;
104  }
105 
107  {
109  }
110 
111  function addSetvar($a_setvar)
112  {
113  array_push($this->setvar, $a_setvar);
114  }
115 
116  function addDisplayfeedback($a_displayfeedback)
117  {
118  array_push($this->displayfeedback, $a_displayfeedback);
119  }
120 }
121 ?>