ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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... | |
![]() | |
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) | |
![]() | |
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) | |
Private Attributes | |
ilDBInterface | $db |
Additional Inherited Members | |
![]() | |
$object | |
![]() | |
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 387 of file class.assClozeTestImport.php.
Referenced by fromXML().
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(), buildFeedbackIdentifier(), ilSession\clear(), ilAssClozeTestFeedback\FB_MODE_GAP_QUESTION, assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilQTIRenderFib\FIBTYPE_DECIMAL, ilQTIRenderFib\FIBTYPE_INTEGER, ilQTIRenderFib\FIBTYPE_STRING, ilSession\get(), ilQTIItem\getAuthor(), ilQTIItem\getComment(), ilObject\getId(), 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.
|
private |
Definition at line 30 of file class.assClozeTestImport.php.