4require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
5require_once
'./Modules/Test/classes/inc.AssessmentConstants.php';
126 $this->correctness =
"1";
136 $this->correctness =
"0";
Class for simple answers.
Class for true/false or yes/no answers.
__construct($answertext="", $points=0.0, $order=0, $correctness=false)
ASS_AnswerTrueFalse constructor.
isCorrect()
Gets the correctness.
setTrue()
Sets the answer as a correct answer.
isTrue()
Gets the correctness.
isFalse()
Gets the correctness.
isIncorrect()
Gets the correctness.
setFalse()
Sets the answer as a incorrect answer.
setCorrectness($correctness=false)
Sets the correctness.
getCorrectness()
Gets the correctness.
An exception for terminatinating execution or to throw for unit testing.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc