87 $this->points_unchecked = $new_points;
89 $this->points_unchecked = 0.0;
107 ): array|float|bool|
int|string|null
110 ...$transformations->normalize(parent::toNormalized($transformations, $context)),
121 $clone = parent::fromNormalized($normalized, $transformations);
122 $clone->points_unchecked = $transformations->
nullableFloat($normalized[
'points_unchecked']);
Class for true/false or yes/no answers.
setPointsChecked($points_checked)
setPointsUnchecked($points_unchecked=0.0)
Sets the points for an unchecked answer.
toNormalized(Transformations $transformations, array $context=[])
Convert the internal state of the implementing object into a language-neutral array structure.
fromNormalized(array $normalized, Transformations $transformations)
Restore the object from its normalized representation.
__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.
Class for simple answers.
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