|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for assClozeTestImport:
Collaboration diagram for assClozeTestImport:Public Member Functions | |
| fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping) | |
| Creates a question from a QTI file. More... | |
Public Member Functions inherited from assQuestionImport | |
| getQuestionId () | |
| getFeedbackGeneric ($item) | |
| fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping) | |
| importSuggestedSolutions (int $question_id, array $solution_from_import) | |
| QTIMaterialToString (ilQTIMaterial $a_material) | |
| Reads an QTI material tag and creates a text or XHTML string. More... | |
Protected Member Functions | |
| buildFeedbackIdentifier ($ident) | |
Protected Member Functions inherited from assQuestionImport | |
| fetchIndexFromFeedbackIdent ($feedbackIdent, $prefix='response_') | |
| getFeedbackAnswerSpecific (ilQTIItem $item, $prefix='response_') | |
| addGeneralMetadata (ilQTIItem $item) | |
| fetchLifecycle (ilQTIItem $item) | |
| processNonAbstractedImageReferences ($text, $sourceNic) | |
| fetchAdditionalContentEditingModeInformation ($qtiItem) | |
| fetches the "additional content editing mode" information from qti item and falls back to ADDITIONAL_CONTENT_EDITING_MODE_RTE when no or invalid information is given More... | |
| findSolutionTypeByValue (string $value) | |
| getSuggestedSolutionsRepo () | |
| deduceThumbSizeFromImportValue (?int $size) | |
| addQuestionToParentObjectAndBuildMappingEntry (int $questionpool_id, ?int $tst_id, int &$question_counter, ?ilObjTest &$tst_object) | |
Private Attributes | |
| ilDBInterface | $db |
Additional Inherited Members | |
Data Fields inherited from assQuestionImport | |
| $object | |
Protected Attributes inherited from assQuestionImport | |
| SuggestedSolutionsDatabaseRepository | $suggestedsolution_repo = null |
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 cloze question imports
assClozeTestImport is a class for cloze question imports
Definition at line 28 of file class.assClozeTestImport.php.
|
protected |
| string | $ident |
Definition at line 366 of file class.assClozeTestImport.php.
Referenced by fromXML().
Here is the caller graph for this function:| assClozeTestImport::fromXML | ( | string | $importdirectory, |
| int | $user_id, | ||
| ilQTIItem | $item, | ||
| int | $questionpool_id, | ||
| ?int | $tst_id, | ||
| ?ilObject & | $tst_object, | ||
| int & | $question_counter, | ||
| array | $import_mapping | ||
| ) |
Creates a question from a QTI file.
Receives parameters from a QTI parser and creates a valid ILIAS question object
| ilQTIItem | $item | The QTI item object |
| integer | $questionpool_id | The id of the parent questionpool |
| integer | $tst_id | The id of the parent test if the question is part of a test |
| object | $tst_object | A reference to the parent test object |
| integer | $question_counter | A reference to a question counter to count the questions of an imported question pool |
| array | $import_mapping | An array containing references to included ILIAS objects public |
2024-11-06, sk: This is needed because the question-text is actually saved as the first entry in the material- node.
Definition at line 54 of file class.assClozeTestImport.php.
References $DIC, $response, ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), assQuestionImport\addGeneralMetadata(), assQuestionImport\addQuestionToParentObjectAndBuildMappingEntry(), buildFeedbackIdentifier(), ilSession\clear(), ilAssClozeTestFeedback\FB_MODE_GAP_QUESTION, assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilQTIRenderFib\FIBTYPE_DECIMAL, ilQTIRenderFib\FIBTYPE_INTEGER, ilSession\get(), ilQTIItem\getAuthor(), ilQTIItem\getComment(), ilQTIItem\getIdent(), ilQTIItem\getIliasSourceNic(), ilQTIItem\getMaxattempts(), ilQTIItem\getMetadataEntry(), ilQTIItem\getPresentation(), ilQTIItem\getTitle(), IL_INST_ID, assQuestionImport\importSuggestedSolutions(), ILIAS\Repository\object(), assQuestionImport\processNonAbstractedImageReferences(), assQuestionImport\QTIMaterialToString(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Here is the call graph for this function:
|
private |
Definition at line 30 of file class.assClozeTestImport.php.