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 | |
__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) | |
Data Fields | |
$object | |
Protected Member Functions | |
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 question imports
assQuestionImport is a basis class question imports
Definition at line 29 of file class.assQuestionImport.php.
assQuestionImport::__construct | ( | $a_object | ) |
assQuestionImport constructor
object | $a_object | The question object public |
Definition at line 42 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item |
Definition at line 187 of file class.assQuestionImport.php.
References fetchLifecycle(), and ilQTIItem\getMetadataEntry().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assTextSubsetImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assFormulaQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
protected |
Definition at line 306 of file class.assQuestionImport.php.
References ILIAS\Repository\object().
Referenced by assKprimChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
finalprotected |
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
protected
Definition at line 276 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, and ILIAS\Repository\object().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assTextSubsetImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assFormulaQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
protected |
$feedbackIdent | ||
string | $prefix |
Definition at line 111 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), and assTextQuestionImport\fromXML().
|
protected |
ilQTIItem | $item |
Definition at line 202 of file class.assQuestionImport.php.
References Vendor\Package\$e, ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), and ilQTIItem\getMetadataEntry().
Referenced by addGeneralMetadata().
assQuestionImport::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 180 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item | |
string | $prefix |
Definition at line 121 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 52 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), and assOrderingHorizontalImport\fromXML().
|
protected |
returns the full path to extracted qpl import archiv (qpl import dir + qpl archiv subdir)
Definition at line 228 of file class.assQuestionImport.php.
References ilObjQuestionPool\_getImportDirectory(), and ilSession\get().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assClozeTestImport\fromXML(), assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::getQuestionId | ( | ) |
Definition at line 47 of file class.assQuestionImport.php.
|
protected |
returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir)
Definition at line 236 of file class.assQuestionImport.php.
References ilObjTest\_getImportDirectory(), and ilSession\get().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assClozeTestImport\fromXML(), assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::importSuggestedSolution | ( | int | $question_id, |
string | $value = "" , |
||
int | $subquestion_index = 0 |
||
) |
|
protected |
Definition at line 241 of file class.assQuestionImport.php.
References $i, $mobs, ilRTE\_replaceMediaObjectImageSrc(), and ilSession\set().
Referenced by assClozeTestImport\fromXML().
assQuestionImport::$object |
Definition at line 34 of file class.assQuestionImport.php.