ILIAS
release_8 Revision v8.19
|
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 (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, $import_mapping) | |
Creates a question from a QTI file. More... | |
![]() | |
__construct ($a_object) | |
assQuestionImport constructor More... | |
getQuestionId () | |
getFeedbackGeneric ($item) | |
fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, $import_mapping) | |
Creates a question from a QTI file. More... | |
importSuggestedSolution (int $question_id, string $value="", int $subquestion_index=0) | |
Additional Inherited Members | |
![]() | |
$object | |
![]() | |
fetchIndexFromFeedbackIdent ($feedbackIdent, $prefix='response_') | |
getFeedbackAnswerSpecific (ilQTIItem $item, $prefix='response_') | |
addGeneralMetadata (ilQTIItem $item) | |
fetchLifecycle (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_RTE when no or invalid information is given More... | |
deduceThumbSizeFromImportValue (?int $size) | |
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 file upload question imports
Definition at line 26 of file class.assFileUploadImport.php.
assFileUploadImport::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
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 |
Definition at line 41 of file class.assFileUploadImport.php.
References ILIAS\LTI\ToolProvider\$created, $DIC, $ilUser, ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), assQuestionImport\addGeneralMetadata(), ilSession\clear(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilSession\get(), ILIAS\UI\Implementation\Component\Input\ViewControl\getContent(), assQuestionImport\getFeedbackGeneric(), assQuestionImport\getQplImportArchivDirectory(), assQuestionImport\getTstImportArchivDirectory(), IL_INST_ID, ILIAS\Repository\int(), and ILIAS\Repository\object().