|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class for error text question imports. More...
Inheritance diagram for assErrorTextImport:
Collaboration diagram for assErrorTextImport:Public Member Functions | |
| fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping) | |
| Creates a question from a QTI file. More... | |
Public Member Functions inherited from assQuestionImport | |
| __construct ($a_object) | |
| assQuestionImport constructor More... | |
| getFeedbackGeneric ($item) | |
| fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping) | |
| Creates a question from a QTI file. More... | |
Additional Inherited Members | |
Data Fields inherited from assQuestionImport | |
| $object | |
Protected Member Functions inherited from assQuestionImport | |
| fetchIndexFromFeedbackIdent ($feedbackIdent, $prefix='response_') | |
| getFeedbackAnswerSpecific (ilQTIItem $item, $prefix='response_') | |
| addGeneralMetadata (ilQTIItem $item) | |
| getQplImportArchivDirectory () | |
| returns the full path to extracted qpl import archiv (qpl import dir + qpl archiv subdir) More... | |
| getTstImportArchivDirectory () | |
| returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir) More... | |
| processNonAbstractedImageReferences ($text, $sourceNic) | |
| fetchAdditionalContentEditingModeInformation ($qtiItem) | |
| fetches the "additional content editing mode" information from qti item and falls back to ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT when no or invalid information is given More... | |
Class for error text question imports.
Definition at line 13 of file class.assErrorTextImport.php.
| assErrorTextImport::fromXML | ( | & | $item, |
| $questionpool_id, | |||
| & | $tst_id, | ||
| & | $tst_object, | ||
| & | $question_counter, | ||
| & | $import_mapping | ||
| ) |
Creates a question from a QTI file.
Receives parameters from a QTI parser and creates a valid ILIAS question object
| object | $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 @access public |
Reimplemented from assQuestionImport.
Definition at line 28 of file class.assErrorTextImport.php.
References $_SESSION, $data, $GLOBALS, $ilUser, $index, ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), assQuestionImport\addGeneralMetadata(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), assQuestionImport\fetchIndexFromFeedbackIdent(), assQuestionImport\getFeedbackAnswerSpecific(), assQuestionImport\getFeedbackGeneric(), assQuestionImport\getQplImportArchivDirectory(), assQuestionImport\getTstImportArchivDirectory(), and sprintf.
Here is the call graph for this function: