ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.assAnswerMatching.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 include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
25 
36 {
44  var $term;
45 
53  var $points;
54 
63 
71  var $term_id;
72 
81 
93  function ASS_AnswerMatching (
94  $term = "",
95  $points = 0.0,
96  $term_id = 0,
99  )
100  {
101  $this->term = $term;
102  $this->term_id = $term_id;
103  $this->picture_or_definition = $picture_or_definition;
104  $this->picture_or_definition_id = $picture_or_definition_id;
105  $this->points = $points;
106  }
107 
116  function getTerm()
117  {
118  return $this->term;
119  }
120 
129  function getPoints()
130  {
131  return $this->points;
132  }
133 
142  function getTermId()
143  {
144  return $this->term_id;
145  }
146 
155  function getPicture() {
157  }
158 
167  function getDefinition() {
169  }
170 
179  function getPictureId() {
181  }
182 
191  function getDefinitionId() {
193  }
194 
204  function setTermId($term_id = 0)
205  {
206  if ($term_id >= 0)
207  {
208  $this->term_id = $term_id;
209  }
210  }
211 
221  function setPictureId($picture_id = 0)
222  {
223  if ($picture_id >= 0)
224  {
225  $this->picture_or_definition_id = $picture_id;
226  }
227  }
228 
238  function setDefinitionId($definition_id = 0)
239  {
240  if ($definition_id >= 0)
241  {
242  $this->picture_or_definition_id = $definition_id;
243  }
244  }
245 
255  function setTerm($term = "")
256  {
257  $this->term = $term;
258  }
259 
269  function setPicture($picture = "")
270  {
271  $this->picture_or_definition = $picture;
272  }
273 
283  function setDefinition($definition = "")
284  {
285  $this->picture_or_definition = $definition;
286  }
287 
288 
298  function setPoints($points = 0.0)
299  {
300  $this->points = $points;
301  }
302 
303 }
304 
305 ?>