|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Class for matching question pairs. More...
Inheritance diagram for assAnswerMatchingPair:
Collaboration diagram for assAnswerMatchingPair:Public Member Functions | |
| __construct (assAnswerMatchingTerm $term, assAnswerMatchingDefinition $definition, float $points=0.0) | |
| getTerm () | |
| withTerm (assAnswerMatchingTerm $term) | |
| getDefinition () | |
| withDefinition (assAnswerMatchingDefinition $definition) | |
| getPoints () | |
| withPoints (float $points) | |
| 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 | |
| assAnswerMatchingTerm | $term |
| assAnswerMatchingDefinition | $definition |
| float | $points |
Class for matching question pairs.
Definition at line 31 of file class.assAnswerMatchingPair.php.
| assAnswerMatchingPair::__construct | ( | assAnswerMatchingTerm | $term, |
| assAnswerMatchingDefinition | $definition, | ||
| float | $points = 0.0 |
||
| ) |
Definition at line 37 of file class.assAnswerMatchingPair.php.
References $definition, $points, and $term.
| assAnswerMatchingPair::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 94 of file class.assAnswerMatchingPair.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\float(), and withPoints().
Here is the call graph for this function:| assAnswerMatchingPair::getDefinition | ( | ) |
Definition at line 58 of file class.assAnswerMatchingPair.php.
References $definition.
Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().
Here is the caller graph for this function:| assAnswerMatchingPair::getPoints | ( | ) |
Definition at line 69 of file class.assAnswerMatchingPair.php.
References $points.
| assAnswerMatchingPair::getTerm | ( | ) |
Definition at line 47 of file class.assAnswerMatchingPair.php.
References $term.
Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().
Here is the caller graph for this function:| assAnswerMatchingPair::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 81 of file class.assAnswerMatchingPair.php.
References $points, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:| assAnswerMatchingPair::withDefinition | ( | assAnswerMatchingDefinition | $definition | ) |
Definition at line 62 of file class.assAnswerMatchingPair.php.
References $definition.
| assAnswerMatchingPair::withPoints | ( | float | $points | ) |
Definition at line 73 of file class.assAnswerMatchingPair.php.
References $points.
Referenced by fromNormalized().
Here is the caller graph for this function:| assAnswerMatchingPair::withTerm | ( | assAnswerMatchingTerm | $term | ) |
Definition at line 51 of file class.assAnswerMatchingPair.php.
References $term.
|
protected |
Definition at line 34 of file class.assAnswerMatchingPair.php.
Referenced by __construct(), getDefinition(), and withDefinition().
|
protected |
Definition at line 35 of file class.assAnswerMatchingPair.php.
Referenced by __construct(), getPoints(), toNormalized(), and withPoints().
|
protected |
Definition at line 33 of file class.assAnswerMatchingPair.php.
Referenced by __construct(), getTerm(), and withTerm().