ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.assAnswerMultipleResponse.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/TestQuestionPool/classes/class.assAnswerSimple.php";
5 include_once "./Modules/Test/classes/inc.AssessmentConstants.php";
6 
26 
39  $answertext = "",
40  $points_checked = 0.0,
41  $order = 0,
43  $id = -1
44  )
45  {
46  parent::__construct($answertext, $points_checked, $order, $id);
48  }
49 
50 
60  function getPointsUnchecked()
61  {
63  }
64 
75  {
76  $new_points = str_replace(",", ".", $points_unchecked);
77 
78  if ($this->checkPoints($new_points))
79  {
80  $this->points_unchecked = $new_points;
81  }
82  else
83  {
84  $this->points_unchecked = 0.0;
85  }
86  }
87 
88  function setPointsChecked($points_checked)
89  {
90  $this->setPoints($points_checked);
91  }
92 
93  function getPointsChecked()
94  {
95  return $this->getPoints();
96  }
97 }
98 
99 ?>