ILIAS
Release_5_0_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. | |
setGapSize ($gap_size) | |
getGapSize () | |
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 () | |
getNumericValueFromText ($text) |
Protected Attributes | |
$lowerBound | |
$upperBound | |
$gap_size | |
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 64 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$order, and ASS_AnswerSimple\$points.
assAnswerCloze::getGapSize | ( | ) |
assAnswerCloze::getLowerBound | ( | ) |
Returns the lower bound.
Definition at line 134 of file class.assAnswerCloze.php.
References $lowerBound.
|
protected |
Definition at line 115 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), and getNumericValueFromText().
Referenced by setLowerBound(), and setUpperBound().
|
protected |
Definition at line 120 of file class.assAnswerCloze.php.
References ilUtil\stripSlashes().
Referenced by getNumericValueFromAnswerText(), setLowerBound(), and setUpperBound().
assAnswerCloze::getUpperBound | ( | ) |
Returns the upper bound.
Definition at line 144 of file class.assAnswerCloze.php.
References $upperBound.
assAnswerCloze::setGapSize | ( | $gap_size | ) |
int | $gap_size |
Definition at line 152 of file class.assAnswerCloze.php.
References $gap_size.
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 79 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), getNumericValueFromAnswerText(), and getNumericValueFromText().
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 100 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), getNumericValueFromAnswerText(), and getNumericValueFromText().
|
protected |
Definition at line 49 of file class.assAnswerCloze.php.
Referenced by getGapSize(), and setGapSize().
|
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().