ILIAS
Release_5_0_x_branch Revision 61816
|
Class for answers with a binary state indicator. More...
Public Member Functions | |
__construct ($answertext="", $points=0.0, $order=0, $state=0, $a_image="", $id=-1) | |
ASS_AnswerBinaryStateImage constructor. | |
getImage () | |
Gets the image filename. | |
setImage ($a_image=0) | |
Sets the image filename. | |
Public Member Functions inherited from ASS_AnswerBinaryState | |
__construct ($answertext="", $points=0.0, $order=0, $state=0, $id=-1) | |
ASS_AnswerBinaryState constructor. | |
getState () | |
Gets the state. | |
isStateChecked () | |
Gets the state. | |
isStateSet () | |
Gets the state. | |
isStateUnset () | |
Gets the state. | |
isStateUnchecked () | |
Gets the state. | |
setState ($state=0) | |
Sets the state. | |
setChecked () | |
Sets the answer as a checked answer. | |
setSet () | |
Sets the answer as a set answer. | |
setUnset () | |
Sets the answer as a unset answer. | |
setUnchecked () | |
Sets the answer as a unchecked answer. | |
Public Member Functions inherited from ASS_AnswerSimple | |
__construct ($answertext="", $points=0.0, $order=0, $id=-1) | |
ASS_AnswerSimple constructor. | |
getId () | |
Gets the answer id. | |
getAnswertext () | |
Gets the answer text. | |
getPoints () | |
Gets the points. | |
checkPoints ($a_points) | |
Checks, if the point value is numeric. | |
getOrder () | |
Gets the sort/display order. | |
setOrder ($order=0) | |
Sets the order. | |
setId ($id=-1) | |
Sets the answer id. | |
setAnswertext ($answertext="") | |
Sets the answer text. | |
setPoints ($points=0.0) | |
Sets the points. |
Protected Attributes | |
$image | |
Protected Attributes inherited from ASS_AnswerBinaryState | |
$state | |
Protected Attributes inherited from ASS_AnswerSimple | |
$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 21 of file class.assAnswerBinaryStateImage.php.
ASS_AnswerBinaryStateImage::__construct | ( | $answertext = "" , |
|
$points = 0.0 , |
|||
$order = 0 , |
|||
$state = 0 , |
|||
$a_image = "" , |
|||
$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 45 of file class.assAnswerBinaryStateImage.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, and ASS_AnswerSimple\$points.
ASS_AnswerBinaryStateImage::getImage | ( | ) |
Gets the image filename.
Returns the image filename
Definition at line 59 of file class.assAnswerBinaryStateImage.php.
References $image.
ASS_AnswerBinaryStateImage::setImage | ( | $a_image = 0 | ) |
Sets the image filename.
Sets the image filename
int | string | $a_image | The image filename |
Definition at line 73 of file class.assAnswerBinaryStateImage.php.
|
protected |
Definition at line 29 of file class.assAnswerBinaryStateImage.php.
Referenced by getImage().