19declare(strict_types=1);
71 throw new \Exception(
'imagename must not be empty');
78 return $this->image !==
null;
85 ): array|float|bool|
int|string|null
88 ...$transformations->normalize(parent::toNormalized($transformations, $context)),
89 'image' => $this->image
101 $clone = parent::fromNormalized($normalized, $transformations);
102 $clone->setImage($transformations->
denormalize($normalized[
'image'], QuestionImage::class)?->getFilename());
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked,...
setImage(?string $image=null)
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.
toNormalized(Transformations $transformations, array $context=[])
Convert the internal state of the implementing object into a language-neutral array structure.
Class for true/false or yes/no answers.
Wrapper object for an image file within a question (e.g.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc