67 $this->lowerBound =
null;
68 $this->upperBound =
null;
83 if ($boundvalue ===
false || $boundvalue > $value) {
86 $this->lowerBound = $bound;
100 if ($boundvalue ===
false || $boundvalue < $value) {
103 $this->upperBound = $bound;
115 $eval->suppress_errors =
true;
160 ): array|float|bool|
int|string|null
163 ...$transformations->normalize(parent::toNormalized($transformations, $context)),
176 $clone = parent::fromNormalized($normalized, $transformations);
177 $clone->lowerBound = $transformations->
nullableString($normalized[
'lower_bound']);
178 $clone->upperBound = $transformations->
nullableString($normalized[
'upper_bound']);
179 $clone->gap_size = $transformations->
int($normalized[
'gap_size']);
Class for simple answers.
getAnswertext()
Gets the answer text.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class for cloze question numeric answers.
setUpperBound(string $bound)
Sets the upper bound.
__construct(string $answertext="", float $points=0.0, int $order=0, int $id=-1, int $state=0)
assAnswerCloze constructor
getNumericValueFromText($text)
setGapSize(int $gap_size)
setLowerBound(string $bound)
Sets the lower boind.
getLowerBound()
Returns the lower bound.
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.
getNumericValueFromAnswerText()
getUpperBound()
Returns the upper bound.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc