ILIAS  Release_4_1_x_branch Revision 61804
 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 $points;
45 
54 
62  var $term_id;
63 
72 
84  function ASS_AnswerMatching (
85  $points = 0.0,
86  $term_id = 0,
89  )
90  {
91  $this->term_id = $term_id;
92  $this->picture_or_definition = $picture_or_definition;
93  $this->picture_or_definition_id = $picture_or_definition_id;
94  $this->points = $points;
95  }
96 
105  function getPoints()
106  {
107  return $this->points;
108  }
109 
118  function getTermId()
119  {
120  return $this->term_id;
121  }
122 
131  function getPicture() {
133  }
134 
143  function getDefinition() {
145  }
146 
155  function getPictureId() {
157  }
158 
167  function getDefinitionId() {
169  }
170 
180  function setTermId($term_id = 0)
181  {
182  if ($term_id >= 0)
183  {
184  $this->term_id = $term_id;
185  }
186  }
187 
197  function setPictureId($picture_id = 0)
198  {
199  if ($picture_id >= 0)
200  {
201  $this->picture_or_definition_id = $picture_id;
202  }
203  }
204 
214  function setDefinitionId($definition_id = 0)
215  {
216  if ($definition_id >= 0)
217  {
218  $this->picture_or_definition_id = $definition_id;
219  }
220  }
221 
231  function setPicture($picture = "")
232  {
233  $this->picture_or_definition = $picture;
234  }
235 
245  function setDefinition($definition = "")
246  {
247  $this->picture_or_definition = $definition;
248  }
249 
250 
260  function setPoints($points = 0.0)
261  {
262  $this->points = $points;
263  }
264 
265 }
266 
267 ?>