ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  public function __construct(
65  $points = 0.0,
66  $term_id = 0,
67  $picture_or_definition = "",
68  $picture_or_definition_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 ?>
setDefinitionId($definition_id=0)
Sets the definition id.
__construct( $points=0.0, $term_id=0, $picture_or_definition="", $picture_or_definition_id=0)
ASS_AnswerMatching constructor.
getPictureId()
Gets the picture identifier.
setTermId($term_id=0)
Sets the term id.
getDefinitionId()
Gets the definition identifier.
getTermId()
Gets the term id.
setDefinition($definition="")
Sets the definition.
setPictureId($picture_id=0)
Sets the picture id.
getPicture()
Gets the picture.
getDefinition()
Gets the definition.
setPicture($picture="")
Sets the picture.
getPoints()
Gets the points.
setPoints($points=0.0)
Sets the points.
Class for matching question answers.