ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.assAnswerMultipleResponse.php
Go to the documentation of this file.
1<?php
2
30{
39
51 public function __construct(string $answertext = "", float $points = 0.0, int $order = 0, int $id = -1, int $state = 0)
52 {
54 }
55
56
66 public function getPointsUnchecked(): float
67 {
69 }
70
80 public function setPointsUnchecked($points_unchecked = 0.0): void
81 {
82 $new_points = str_replace(",", ".", $points_unchecked);
83
84 if ($this->checkPoints($new_points)) {
85 $this->points_unchecked = $new_points;
86 } else {
87 $this->points_unchecked = 0.0;
88 }
89 }
90
91 public function setPointsChecked($points_checked): void
92 {
93 $this->setPoints($points_checked);
94 }
95
96 public function getPointsChecked(): float
97 {
98 return $this->getPoints();
99 }
100}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setPointsUnchecked($points_unchecked=0.0)
Sets the points for an unchecked answer.
__construct(string $answertext="", float $points=0.0, int $order=0, int $id=-1, int $state=0)
ASS_AnswerMultipleResponse constructor.
getPointsUnchecked()
Returns the points for an unchecked answer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getPoints()
Gets the points.
checkPoints($a_points)
Checks, if the point value is numeric.
setPoints($points=0.0)
Sets the points.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc