ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.assAnswerMatching.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
5 
16 {
24  var $points;
25 
34 
42  var $term_id;
43 
52 
64  function ASS_AnswerMatching (
65  $points = 0.0,
66  $term_id = 0,
69  )
70  {
71  $this->term_id = $term_id;
72  $this->picture_or_definition = $picture_or_definition;
73  $this->picture_or_definition_id = $picture_or_definition_id;
74  $this->points = $points;
75  }
76 
85  function getPoints()
86  {
87  return $this->points;
88  }
89 
98  function getTermId()
99  {
100  return $this->term_id;
101  }
102 
111  function getPicture() {
113  }
114 
123  function getDefinition() {
125  }
126 
135  function getPictureId() {
137  }
138 
147  function getDefinitionId() {
149  }
150 
160  function setTermId($term_id = 0)
161  {
162  if ($term_id >= 0)
163  {
164  $this->term_id = $term_id;
165  }
166  }
167 
177  function setPictureId($picture_id = 0)
178  {
179  if ($picture_id >= 0)
180  {
181  $this->picture_or_definition_id = $picture_id;
182  }
183  }
184 
194  function setDefinitionId($definition_id = 0)
195  {
196  if ($definition_id >= 0)
197  {
198  $this->picture_or_definition_id = $definition_id;
199  }
200  }
201 
211  function setPicture($picture = "")
212  {
213  $this->picture_or_definition = $picture;
214  }
215 
225  function setDefinition($definition = "")
226  {
227  $this->picture_or_definition = $definition;
228  }
229 
230 
240  function setPoints($points = 0.0)
241  {
242  $this->points = $points;
243  }
244 
245 }
246 
247 ?>