ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct ($answertext="", $points=0.0, $order=0, $correctness=false) | |
ASS_AnswerTrueFalse constructor. More... | |
getCorrectness () | |
Gets the correctness. More... | |
isCorrect () | |
Gets the correctness. More... | |
isIncorrect () | |
Gets the correctness. More... | |
isTrue () | |
Gets the correctness. More... | |
isFalse () | |
Gets the correctness. More... | |
setCorrectness ($correctness=false) | |
Sets the correctness. More... | |
setTrue () | |
Sets the answer as a correct answer. More... | |
setFalse () | |
Sets the answer as a incorrect answer. More... | |
![]() | |
__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... | |
Data Fields | |
$correctness | |
Additional Inherited Members | |
![]() | |
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 true/false or yes/no answers
ASS_AnswerTrueFalse is a class for true/false or yes/no answers used for example in multiple choice tests.
: Get rid of integers in favor of booleans here.
Definition at line 35 of file class.assAnswerTrueFalse.php.
ASS_AnswerTrueFalse::__construct | ( | $answertext = "" , |
|
$points = 0.0 , |
|||
$order = 0 , |
|||
$correctness = false |
|||
) |
ASS_AnswerTrueFalse constructor.
The constructor takes possible arguments an creates an instance of the ASS_AnswerTrueFalse object.
string | $answertext | A string defining the answer text |
double | $points | The number of points given for the selected answer |
boolean | $correctness | A boolean value indicating the correctness of the answer |
integer | $order | A nonnegative value representing a possible display or sort order |
Definition at line 56 of file class.assAnswerTrueFalse.php.
References ASS_AnswerSimple\$answertext, $correctness, ASS_AnswerSimple\$order, ASS_AnswerSimple\$points, and ILIAS\GlobalScreen\Provider\__construct().
ASS_AnswerTrueFalse::getCorrectness | ( | ) |
Gets the correctness.
Definition at line 71 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::isCorrect | ( | ) |
Gets the correctness.
Definition at line 81 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::isFalse | ( | ) |
Gets the correctness.
Definition at line 115 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::isIncorrect | ( | ) |
Gets the correctness.
Definition at line 91 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::isTrue | ( | ) |
Gets the correctness.
Definition at line 103 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::setCorrectness | ( | $correctness = false | ) |
Sets the correctness.
boolean | $correctness | A boolean value indicating the correctness of the answer |
Definition at line 125 of file class.assAnswerTrueFalse.php.
References $correctness.
ASS_AnswerTrueFalse::setFalse | ( | ) |
Sets the answer as a incorrect answer.
Definition at line 148 of file class.assAnswerTrueFalse.php.
ASS_AnswerTrueFalse::setTrue | ( | ) |
Sets the answer as a correct answer.
Definition at line 138 of file class.assAnswerTrueFalse.php.
ASS_AnswerTrueFalse::$correctness |
Definition at line 44 of file class.assAnswerTrueFalse.php.
Referenced by __construct(), getCorrectness(), isCorrect(), isFalse(), isIncorrect(), isTrue(), and setCorrectness().