ILIAS
Release_4_4_x_branch Revision 61816
|
Class for cloze question numeric answers. More...
Public Member Functions | |
__construct ($answertext="", $points=0.0, $order=0) | |
assAnswerCloze constructor | |
setLowerBound ($bound) | |
Sets the lower boind. | |
setUpperBound ($bound) | |
Sets the upper bound. | |
getLowerBound () | |
Returns the lower bound. | |
getUpperBound () | |
Returns the upper bound. | |
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 Member Functions | |
getNumericValueFromAnswerText () |
Protected Attributes | |
$lowerBound | |
$upperBound | |
Protected Attributes inherited from ASS_AnswerSimple | |
$answertext | |
$points | |
$order | |
$id |
Class for cloze question numeric answers.
assAnswerCloze is a class for cloze questions numeric answers.
Rework class to represent bounds as numerics instead of strings.
Definition at line 23 of file class.assAnswerCloze.php.
assAnswerCloze::__construct | ( | $answertext = "" , |
|
$points = 0.0 , |
|||
$order = 0 |
|||
) |
assAnswerCloze constructor
The constructor takes possible arguments an creates an instance of the assAnswerCloze 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 |
Definition at line 57 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$order, and ASS_AnswerSimple\$points.
assAnswerCloze::getLowerBound | ( | ) |
Returns the lower bound.
Definition at line 129 of file class.assAnswerCloze.php.
References $lowerBound.
|
protected |
Definition at line 116 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), and ilUtil\stripSlashes().
Referenced by setUpperBound().
assAnswerCloze::getUpperBound | ( | ) |
Returns the upper bound.
Definition at line 139 of file class.assAnswerCloze.php.
References $upperBound.
assAnswerCloze::setLowerBound | ( | $bound | ) |
Sets the lower boind.
$bound | string A string defining the lower bound of an answer for numeric gaps. : Refactor method to get rid of "locale magic". |
Definition at line 70 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext().
assAnswerCloze::setUpperBound | ( | $bound | ) |
Sets the upper bound.
$bound | string A string defining the upper bound of an answer for numeric gaps. : Refactor method to get rid of "locale magic". |
Definition at line 95 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), and getNumericValueFromAnswerText().
|
protected |
Definition at line 33 of file class.assAnswerCloze.php.
Referenced by getLowerBound().
|
protected |
Definition at line 43 of file class.assAnswerCloze.php.
Referenced by getUpperBound().