|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Class for matching question terms. More...
Inheritance diagram for assAnswerMatchingTerm:
Collaboration diagram for assAnswerMatchingTerm:Public Member Functions | |
| __construct (string $text="", string $picture="", int $identifier=0) | |
| getText () | |
| withText (string $text) | |
| getPicture () | |
| withPicture (string $picture) | |
| getIdentifier () | |
| withIdentifier (int $identifier) | |
| 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 Member Functions | |
| createIdentifier () | |
Protected Attributes | |
| string | $text |
| string | $picture |
| int | $identifier |
Class for matching question terms.
Definition at line 32 of file class.assAnswerMatchingTerm.php.
| assAnswerMatchingTerm::__construct | ( | string | $text = "", |
| string | $picture = "", |
||
| int | $identifier = 0 |
||
| ) |
Definition at line 38 of file class.assAnswerMatchingTerm.php.
References $identifier, $picture, $text, and createIdentifier().
Here is the call graph for this function:
|
protected |
Definition at line 46 of file class.assAnswerMatchingTerm.php.
References $id.
Referenced by __construct().
Here is the caller graph for this function:| assAnswerMatchingTerm::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 101 of file class.assAnswerMatchingTerm.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\string(), and withText().
Here is the call graph for this function:| assAnswerMatchingTerm::getIdentifier | ( | ) |
Definition at line 74 of file class.assAnswerMatchingTerm.php.
References $identifier.
Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().
Here is the caller graph for this function:| assAnswerMatchingTerm::getPicture | ( | ) |
Definition at line 63 of file class.assAnswerMatchingTerm.php.
References $picture.
Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().
Here is the caller graph for this function:| assAnswerMatchingTerm::getText | ( | ) |
Definition at line 52 of file class.assAnswerMatchingTerm.php.
References $text.
Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().
Here is the caller graph for this function:| assAnswerMatchingTerm::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 86 of file class.assAnswerMatchingTerm.php.
References $identifier, $text, and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:| assAnswerMatchingTerm::withIdentifier | ( | int | $identifier | ) |
Definition at line 78 of file class.assAnswerMatchingTerm.php.
References $identifier.
| assAnswerMatchingTerm::withPicture | ( | string | $picture | ) |
Definition at line 67 of file class.assAnswerMatchingTerm.php.
References $picture.
| assAnswerMatchingTerm::withText | ( | string | $text | ) |
Definition at line 56 of file class.assAnswerMatchingTerm.php.
References $text.
Referenced by fromNormalized().
Here is the caller graph for this function:
|
protected |
Definition at line 36 of file class.assAnswerMatchingTerm.php.
Referenced by __construct(), getIdentifier(), toNormalized(), and withIdentifier().
|
protected |
Definition at line 35 of file class.assAnswerMatchingTerm.php.
Referenced by __construct(), getPicture(), and withPicture().
|
protected |
Definition at line 34 of file class.assAnswerMatchingTerm.php.
Referenced by __construct(), getText(), toNormalized(), and withText().