ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.assAnswerMultipleResponseImage.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
33
class
ASS_AnswerMultipleResponseImage
extends
ASS_AnswerMultipleResponse
34
{
35
public
?
string
$image
=
null
;
36
50
public
function
__construct
(
51
string
$answertext
=
''
,
52
float
$points
= 0.0,
53
int
$order
= 0,
54
int
$id
= -1,
55
int
$state = 0
56
) {
57
parent::__construct
(
$answertext
,
$points
,
$order
,
$id
, $state);
58
}
59
60
public
function
getImage
(): ?string
61
{
62
return
$this->image
;
63
}
64
65
public
function
setImage
(?
string
$image
=
null
): void
66
{
67
if
(
$image
===
''
) {
68
throw
new \Exception(
'imagename must not be empty'
);
69
}
70
$this->image =
$image
;
71
}
72
73
public
function
hasImage
(): bool
74
{
75
return
$this->image !==
null
;
76
}
77
}
ASS_AnswerMultipleResponseImage
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked,...
Definition:
class.assAnswerMultipleResponseImage.php:34
ASS_AnswerMultipleResponseImage\setImage
setImage(?string $image=null)
Definition:
class.assAnswerMultipleResponseImage.php:65
ASS_AnswerMultipleResponseImage\__construct
__construct(string $answertext='', float $points=0.0, int $order=0, int $id=-1, int $state=0)
ASS_AnswerMultipleResponse constructor.
Definition:
class.assAnswerMultipleResponseImage.php:50
ASS_AnswerMultipleResponseImage\hasImage
hasImage()
Definition:
class.assAnswerMultipleResponseImage.php:73
ASS_AnswerMultipleResponseImage\getImage
getImage()
Definition:
class.assAnswerMultipleResponseImage.php:60
ASS_AnswerMultipleResponseImage\$image
string $image
Definition:
class.assAnswerMultipleResponseImage.php:35
ASS_AnswerMultipleResponse
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.assAnswerMultipleResponse.php:30
ASS_AnswerSimple\$points
$points
Definition:
class.assAnswerSimple.php:40
ASS_AnswerSimple\$order
$order
Definition:
class.assAnswerSimple.php:49
ASS_AnswerSimple\$id
$id
Definition:
class.assAnswerSimple.php:58
ASS_AnswerSimple\$answertext
string $answertext
Definition:
class.assAnswerSimple.php:31
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
components
ILIAS
TestQuestionPool
classes
class.assAnswerMultipleResponseImage.php
Generated on Sat Oct 18 2025 23:04:33 for ILIAS by
1.9.4 (using
Doxyfile
)