ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilQTIRenderHotspot.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("SHOWDRAW_NO", "1");
25 define("SHOWDRAW_YES", "2");
26 
36 {
37  public $showdraw;
38  public $minnumber;
39  public $maxnumber;
41  public $material;
42 
43  public function __construct()
44  {
45  $this->showdraw = SHOWDRAW_NO;
46  $this->response_labels = array();
47  $this->material = array();
48  }
49 
50  public function setShowdraw($a_showdraw)
51  {
52  switch (strtolower($a_showdraw)) {
53  case "1":
54  case "no":
55  $this->showdraw = SHOWDRAW_NO;
56  break;
57  case "2":
58  case "yes":
59  $this->showdraw = SHOWDRAW_YES;
60  break;
61  }
62  }
63 
64  public function getShowdraw()
65  {
66  return $this->showdraw;
67  }
68 
69  public function setMinnumber($a_minnumber)
70  {
71  $this->minnumber = $a_minnumber;
72  }
73 
74  public function getMinnumber()
75  {
76  return $this->minnumber;
77  }
78 
79  public function setMaxnumber($a_maxnumber)
80  {
81  $this->maxnumber = $a_maxnumber;
82  }
83 
84  public function getMaxnumber()
85  {
86  return $this->maxnumber;
87  }
88 
89  public function addResponseLabel($a_response_label)
90  {
91  array_push($this->response_labels, $a_response_label);
92  }
93 
94  public function addMaterial($a_material)
95  {
96  array_push($this->material, $a_material);
97  }
98 }
const SHOWDRAW_NO
const SHOWDRAW_YES
addResponseLabel($a_response_label)