ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file. More...
Public Member Functions | |
__construct (string $answertext='', float $points=0.0, int $order=0, int $id=-1, int $state=0) | |
ASS_AnswerMultipleResponse constructor. More... | |
getImage () | |
setImage (?string $image=null) | |
hasImage () | |
![]() | |
__construct (string $answertext="", float $points=0.0, int $order=0, int $id=-1, int $state=0) | |
ASS_AnswerMultipleResponse constructor. More... | |
getPointsUnchecked () | |
Returns the points for an unchecked answer. More... | |
setPointsUnchecked ($points_unchecked=0.0) | |
Sets the points for an unchecked answer. More... | |
setPointsChecked ($points_checked) | |
getPointsChecked () | |
![]() | |
__construct ($answertext="", $points=0.0, $order=0, $id=-1) | |
ASS_AnswerSimple constructor. More... | |
getId () | |
Gets the answer id. More... | |
getAnswertext () | |
Gets the answer text. More... | |
getPoints () | |
Gets the points. More... | |
checkPoints ($a_points) | |
Checks, if the point value is numeric. More... | |
getOrder () | |
Gets the sort/display order. More... | |
setOrder ($order=0) | |
Sets the order. More... | |
setId ($id=-1) | |
Sets the answer id. More... | |
setAnswertext ($answertext="") | |
Sets the answer text. More... | |
setPoints ($points=0.0) | |
Sets the points. More... | |
Data Fields | |
string | $image = null |
![]() | |
$points_unchecked | |
Additional Inherited Members | |
![]() | |
string | $answertext |
$points | |
$order | |
$id | |
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file.
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file
Definition at line 33 of file class.assAnswerMultipleResponseImage.php.
ASS_AnswerMultipleResponseImage::__construct | ( | string | $answertext = '' , |
float | $points = 0.0 , |
||
int | $order = 0 , |
||
int | $id = -1 , |
||
int | $state = 0 |
||
) |
ASS_AnswerMultipleResponse constructor.
The constructor takes possible arguments an creates an instance of the ASS_AnswerMultipleResponse object.
string | $answertext | A string defining the answer text |
double | $points | The number of points given for the selected answer |
integer | $order | A nonnegative value representing a possible display or sort order |
double | $points_unchecked | The points when the answer is not checked |
string | $a_image | The image filename |
integer | $id | The database id of the answer public |
Definition at line 50 of file class.assAnswerMultipleResponseImage.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, ASS_AnswerSimple\$points, and ILIAS\GlobalScreen\Provider\__construct().
ASS_AnswerMultipleResponseImage::getImage | ( | ) |
Definition at line 60 of file class.assAnswerMultipleResponseImage.php.
References $image.
ASS_AnswerMultipleResponseImage::hasImage | ( | ) |
Definition at line 73 of file class.assAnswerMultipleResponseImage.php.
References null.
ASS_AnswerMultipleResponseImage::setImage | ( | ?string | $image = null | ) |
Definition at line 65 of file class.assAnswerMultipleResponseImage.php.
References $image.
string ASS_AnswerMultipleResponseImage::$image = null |
Definition at line 35 of file class.assAnswerMultipleResponseImage.php.
Referenced by getImage(), and setImage().