|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class for answers with a binary state indicator. More...
Inheritance diagram for ASS_AnswerBinaryStateImage:
Collaboration diagram for ASS_AnswerBinaryStateImage:Public Member Functions | |
| __construct ($answertext="", $points=0.0, $order=0, $state=false, string $a_image=null, int $id=-1) | |
| ASS_AnswerBinaryStateImage constructor The constructor takes possible arguments an creates an instance of the ASS_AnswerBinaryStateImage object. More... | |
| getImage () | |
| setImage (?string $image=null) | |
| hasImage () | |
Public Member Functions inherited from ASS_AnswerBinaryState | |
| __construct (string $answertext="", float $points=0.0, int $order=0, bool $checked=false, int $id=-1) | |
| ASS_AnswerBinaryState constructor The constructor takes possible arguments and creates an instance of the ASS_AnswerBinaryState object. More... | |
| getState () | |
| Gets the state. More... | |
| isStateChecked () | |
| Gets the state. More... | |
| isStateSet () | |
| Gets the state. More... | |
| isStateUnset () | |
| Gets the state. More... | |
| isStateUnchecked () | |
| Gets the state. More... | |
| setState (bool $state=false) | |
| Sets the state. More... | |
| setChecked () | |
| Sets the answer as a checked answer. More... | |
| setSet () | |
| Sets the answer as a set answer. More... | |
| setUnset () | |
| Sets the answer as a unset answer. More... | |
| setUnchecked () | |
| Sets the answer as a unchecked answer. More... | |
Public Member Functions inherited from ASS_AnswerSimple | |
| __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... | |
Protected Attributes | |
| string | $image = null |
Protected Attributes inherited from ASS_AnswerSimple | |
| string | $answertext |
| $points | |
| $order | |
| $id | |
Class for answers with a binary state indicator.
ASS_AnswerBinaryStateImage is a class for answers with a binary state indicator (checked/unchecked, set/unset) and an image file
Definition at line 36 of file class.assAnswerBinaryStateImage.php.
| ASS_AnswerBinaryStateImage::__construct | ( | $answertext = "", |
|
$points = 0.0, |
|||
$order = 0, |
|||
$state = false, |
|||
| string | $a_image = null, |
||
| int | $id = -1 |
||
| ) |
ASS_AnswerBinaryStateImage constructor The constructor takes possible arguments an creates an instance of the ASS_AnswerBinaryStateImage 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 |
| integer | $state | A integer value indicating the state of the answer |
| string | $a_image | The image filename |
| integer | $id | The database id of the answer |
Definition at line 50 of file class.assAnswerBinaryStateImage.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, ASS_AnswerSimple\$points, ILIAS\MetaData\Repository\Validation\Data\__construct(), and setImage().
Here is the call graph for this function:| ASS_AnswerBinaryStateImage::getImage | ( | ) |
| ASS_AnswerBinaryStateImage::hasImage | ( | ) |
Definition at line 69 of file class.assAnswerBinaryStateImage.php.
| ASS_AnswerBinaryStateImage::setImage | ( | ?string | $image = null | ) |
Definition at line 61 of file class.assAnswerBinaryStateImage.php.
References $image.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file class.assAnswerBinaryStateImage.php.
Referenced by getImage(), and setImage().