|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Class for error text answers. More...
Inheritance diagram for assAnswerErrorText:
Collaboration diagram for assAnswerErrorText:Public Member Functions | |
| __construct (string $text_wrong="", string $text_correct="", float $points=0.0, ?int $position=null) | |
| assAnswerErrorText constructor More... | |
| getTextWrong () | |
| getTextCorrect () | |
| getPoints () | |
| withPoints (float $points) | |
| getPosition () | |
| withPosition (int $position) | |
| getLength () | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| Convert the internal state of the implementing object into a language-neutral array structure. More... | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| Restore the object from its normalized representation. More... | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| Convert the internal state of the implementing object into a language-neutral array structure. More... | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| Restore the object from its normalized representation. More... | |
Protected Attributes | |
| string | $text_wrong |
| string | $text_correct |
| float | $points |
| int | $position |
| int | $length |
| assAnswerErrorText::__construct | ( | string | $text_wrong = "", |
| string | $text_correct = "", |
||
| float | $points = 0.0, |
||
| ?int | $position = null |
||
| ) |
assAnswerErrorText constructor
| string | $text_wrong | Wrong text |
| string | $text_correct | Correct text |
| double | $points | Points |
Definition at line 45 of file class.assAnswerErrorText.php.
References $points, $position, $text_correct, and $text_wrong.
| assAnswerErrorText::fromNormalized | ( | array | $normalized, |
| Transformations | $transformations | ||
| ) |
Restore the object from its normalized representation.
| array<array-key,mixed> | $normalized |
Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\FromNormalized.
Definition at line 117 of file class.assAnswerErrorText.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\float(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\string().
Here is the call graph for this function:| assAnswerErrorText::getLength | ( | ) |
| assAnswerErrorText::getPoints | ( | ) |
Definition at line 73 of file class.assAnswerErrorText.php.
References $points.
| assAnswerErrorText::getPosition | ( | ) |
Definition at line 85 of file class.assAnswerErrorText.php.
References $position.
| assAnswerErrorText::getTextCorrect | ( | ) |
Definition at line 68 of file class.assAnswerErrorText.php.
References $text_correct.
| assAnswerErrorText::getTextWrong | ( | ) |
Definition at line 63 of file class.assAnswerErrorText.php.
References $text_wrong.
Referenced by assErrorText\addPositionToErrorAnswer().
Here is the caller graph for this function:| assAnswerErrorText::toNormalized | ( | Transformations | $transformations, |
| array | $context = [] |
||
| ) |
Convert the internal state of the implementing object into a language-neutral array structure.
The resulting array must contain only null, scalar values (string, int, float, bool) and nested arrays following the same rules.
| array<string,mixed> | $context |
Implements ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\ToNormalized.
Definition at line 103 of file class.assAnswerErrorText.php.
References $points, $position, $text_correct, and $text_wrong.
| assAnswerErrorText::withPoints | ( | float | $points | ) |
Definition at line 78 of file class.assAnswerErrorText.php.
References $points.
| assAnswerErrorText::withPosition | ( | int | $position | ) |
Definition at line 90 of file class.assAnswerErrorText.php.
References $position.
Referenced by assErrorText\addPositionToErrorAnswer().
Here is the caller graph for this function:
|
protected |
Definition at line 37 of file class.assAnswerErrorText.php.
Referenced by getLength().
|
protected |
Definition at line 35 of file class.assAnswerErrorText.php.
Referenced by __construct(), getPoints(), toNormalized(), and withPoints().
|
protected |
Definition at line 36 of file class.assAnswerErrorText.php.
Referenced by __construct(), getPosition(), toNormalized(), and withPosition().
|
protected |
Definition at line 34 of file class.assAnswerErrorText.php.
Referenced by __construct(), getTextCorrect(), and toNormalized().
|
protected |
Definition at line 33 of file class.assAnswerErrorText.php.
Referenced by __construct(), getTextWrong(), and toNormalized().