|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for assAnswerCloze:
Collaboration diagram for assAnswerCloze:Public Member Functions | |
| __construct (string $answertext="", float $points=0.0, int $order=0, int $id=-1, int $state=0) | |
| assAnswerCloze constructor More... | |
| setLowerBound (string $bound) | |
| Sets the lower boind. More... | |
| setUpperBound (string $bound) | |
| Sets the upper bound. More... | |
| getLowerBound () | |
| Returns the lower bound. More... | |
| getUpperBound () | |
| Returns the upper bound. More... | |
| setGapSize (int $gap_size) | |
| getGapSize () | |
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 Member Functions | |
| getNumericValueFromAnswerText () | |
| getNumericValueFromText ($text) | |
Protected Attributes | |
| string | $lowerBound |
| string | $upperBound |
| int | $gap_size |
Protected Attributes inherited from ASS_AnswerSimple | |
| string | $answertext |
| $points | |
| $order | |
| $id | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class for cloze question numeric answers
assAnswerCloze is a class for cloze questions numeric answers.
@TODO Rework class to represent bounds as numerics instead of strings.
Definition at line 37 of file class.assAnswerCloze.php.
| assAnswerCloze::__construct | ( | string | $answertext = "", |
| float | $points = 0.0, |
||
| int | $order = 0, |
||
| int | $id = -1, |
||
| int | $state = 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 @TODO See if the initialization of the bounds to null can be avoided to have them string/numeric at all times. |
Definition at line 64 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\$answertext, ASS_AnswerSimple\$id, ASS_AnswerSimple\$order, ASS_AnswerSimple\$points, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| assAnswerCloze::getGapSize | ( | ) |
Definition at line 152 of file class.assAnswerCloze.php.
References $gap_size.
| assAnswerCloze::getLowerBound | ( | ) |
Returns the lower bound.
Definition at line 126 of file class.assAnswerCloze.php.
References $lowerBound.
|
protected |
Definition at line 107 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), and getNumericValueFromText().
Referenced by setLowerBound(), and setUpperBound().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 112 of file class.assAnswerCloze.php.
References ilUtil\stripSlashes().
Referenced by getNumericValueFromAnswerText(), setLowerBound(), and setUpperBound().
Here is the call graph for this function:
Here is the caller graph for this function:| assAnswerCloze::getUpperBound | ( | ) |
Returns the upper bound.
Definition at line 136 of file class.assAnswerCloze.php.
References $upperBound.
| assAnswerCloze::setGapSize | ( | int | $gap_size | ) |
| int | $gap_size |
Definition at line 144 of file class.assAnswerCloze.php.
References $gap_size.
| assAnswerCloze::setLowerBound | ( | string | $bound | ) |
Sets the lower boind.
| $bound | string A string defining the lower bound of an answer for numeric gaps. @TODO: Refactor method to get rid of "locale magic". |
Definition at line 78 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), getNumericValueFromAnswerText(), and getNumericValueFromText().
Referenced by assClozeTestGUI\saveNumericGapCorrectionFormProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| assAnswerCloze::setUpperBound | ( | string | $bound | ) |
Sets the upper bound.
| $bound | string A string defining the upper bound of an answer for numeric gaps. @TODO: Refactor method to get rid of "locale magic". |
Definition at line 95 of file class.assAnswerCloze.php.
References ASS_AnswerSimple\getAnswertext(), getNumericValueFromAnswerText(), and getNumericValueFromText().
Referenced by assClozeTestGUI\saveNumericGapCorrectionFormProperty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 51 of file class.assAnswerCloze.php.
Referenced by getGapSize(), and setGapSize().
|
protected |
Definition at line 39 of file class.assAnswerCloze.php.
Referenced by getLowerBound().
|
protected |
Definition at line 49 of file class.assAnswerCloze.php.
Referenced by getUpperBound().