ILIAS
Release_4_4_x_branch Revision 61816
|
Class for true/false or yes/no answers. More...
Public Member Functions | |
ASS_AnswerMultipleResponse ($answertext="", $points_checked=0.0, $order=0, $points_unchecked=0, $id=-1) | |
ASS_AnswerMultipleResponse constructor. | |
getPointsUnchecked () | |
Returns the points for an unchecked answer. | |
setPointsUnchecked ($points_unchecked=0.0) | |
Sets the points for an unchecked answer. | |
setPointsChecked ($points_checked) | |
getPointsChecked () | |
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. |
Data Fields | |
$points_unchecked |
Additional Inherited Members | |
Protected Attributes inherited from ASS_AnswerSimple | |
$answertext | |
$points | |
$order | |
$id |
Class for true/false or yes/no answers.
ASS_AnswerMultipleResponse is a class for answers with a binary state indicator (checked/unchecked, set/unset)
Definition at line 17 of file class.assAnswerMultipleResponse.php.
ASS_AnswerMultipleResponse::ASS_AnswerMultipleResponse | ( | $answertext = "" , |
|
$points_checked = 0.0 , |
|||
$order = 0 , |
|||
$points_unchecked = 0 , |
|||
$id = -1 |
|||
) |
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 |
double | $points_unchecked | The points when the answer is not checked |
integer | $order | A nonnegative value representing a possible display or sort order public |
Definition at line 38 of file class.assAnswerMultipleResponse.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, $points_unchecked, ASS_AnswerSimple\__construct(), and setPointsUnchecked().
ASS_AnswerMultipleResponse::getPointsChecked | ( | ) |
Definition at line 93 of file class.assAnswerMultipleResponse.php.
References ASS_AnswerSimple\getPoints().
ASS_AnswerMultipleResponse::getPointsUnchecked | ( | ) |
Returns the points for an unchecked answer.
Returns the points for an unchecked answer
Definition at line 60 of file class.assAnswerMultipleResponse.php.
References $points_unchecked.
ASS_AnswerMultipleResponse::setPointsChecked | ( | $points_checked | ) |
Definition at line 88 of file class.assAnswerMultipleResponse.php.
References ASS_AnswerSimple\setPoints().
ASS_AnswerMultipleResponse::setPointsUnchecked | ( | $points_unchecked = 0.0 | ) |
Sets the points for an unchecked answer.
Sets the points for an unchecked answer
double | $points_unchecked | The points for an unchecked answer public |
Definition at line 74 of file class.assAnswerMultipleResponse.php.
References $points_unchecked, and ASS_AnswerSimple\checkPoints().
Referenced by ASS_AnswerMultipleResponse().
ASS_AnswerMultipleResponse::$points_unchecked |
Definition at line 25 of file class.assAnswerMultipleResponse.php.
Referenced by ASS_AnswerMultipleResponse(), ASS_AnswerMultipleResponseImage\ASS_AnswerMultipleResponseImage(), getPointsUnchecked(), and setPointsUnchecked().