82 $this->coords = preg_replace(
"/\s/",
"", $this->coords);
142 $this->points_unchecked = $new_points;
144 $this->points_unchecked = 0.0;
152 ): array|float|bool|
int|string|null
155 ...$transformations->normalize(parent::toNormalized($transformations, $context)),
168 $clone = parent::fromNormalized($normalized, $transformations);
169 $clone->setCoords($transformations->
string($normalized[
'coords']));
170 $clone->setArea($transformations->
string($normalized[
'area']));
171 $clone->setPointsUnchecked($transformations->
float($normalized[
'points_unchecked']));
Class for true/false or yes/no answers.
Class for true/false or yes/no answers.
fromNormalized(array $normalized, Transformations $transformations)
Restore the object from its normalized representation.
__construct( $answertext="", $points=0.0, $order=0, $coords="", $area="", $id=-1, $points_unchecked=0)
ASS_AnswerImagemap constructor.
getArea()
Gets the area of an image map.
setCoords(string $coords="")
Sets the coordinates of an image map.
toNormalized(Transformations $transformations, array $context=[])
Convert the internal state of the implementing object into a language-neutral array structure.
getPointsUnchecked()
Returns the points for an unchecked answer Returns the points for an unchecked answer.
getCoords()
Gets the coordinates of an image map.
setPointsUnchecked($points_unchecked)
Sets the points for an unchecked answer.
checkPoints($a_points)
Checks, if the point value is numeric.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc