ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  public $continue;
38  public $title;
39  public $comment;
40  public $conditionvar;
41  public $setvar;
44 
45  public function __construct()
46  {
47  $this->setvar = array();
48  $this->displayfeedback = array();
49  }
50 
51  public function setContinue($a_continue)
52  {
53  switch (strtolower($a_continue)) {
54  case "1":
55  case "yes":
56  $this->continue = CONTINUE_YES;
57  break;
58  case "2":
59  case "no":
60  $this->continue = CONTINUE_NO;
61  break;
62  }
63  }
64 
65  public function getContinue()
66  {
67  return $this->continue;
68  }
69 
70  public function setTitle($a_title)
71  {
72  $this->title = $a_title;
73  }
74 
75  public function getTitle()
76  {
77  return $this->title;
78  }
79 
80  public function setComment($a_comment)
81  {
82  $this->comment = $a_comment;
83  }
84 
85  public function getComment()
86  {
87  return $this->comment;
88  }
89 
90  public function setConditionvar($a_conditionvar)
91  {
92  $this->conditionvar = $a_conditionvar;
93  }
94 
95  public function getConditionvar()
96  {
97  return $this->conditionvar;
98  }
99 
100  public function setRespcond_extension($a_respcond_extension)
101  {
102  $this->respcond_extension = $a_respcond_extension;
103  }
104 
105  public function getRespcond_extension()
106  {
108  }
109 
110  public function addSetvar($a_setvar)
111  {
112  array_push($this->setvar, $a_setvar);
113  }
114 
115  public function addDisplayfeedback($a_displayfeedback)
116  {
117  array_push($this->displayfeedback, $a_displayfeedback);
118  }
119 }
const CONTINUE_YES
setRespcond_extension($a_respcond_extension)
addDisplayfeedback($a_displayfeedback)
comment()
Definition: comment.php:2
const CONTINUE_NO
setConditionvar($a_conditionvar)