ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class for question imports. More...
Public Member Functions | |
__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... | |
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_DEFAULT when no or invalid information is given More... | |
Class for question imports.
assQuestionImport is a basis class question imports
Definition at line 15 of file class.assQuestionImport.php.
assQuestionImport::__construct | ( | $a_object | ) |
assQuestionImport constructor
object | $a_object | The question object public |
Definition at line 32 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item |
Definition at line 172 of file class.assQuestionImport.php.
References fetchLifecycle(), and ilQTIItem\getMetadataEntry().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assTextSubsetImport\fromXML(), assFormulaQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assNumericImport\fromXML(), assImagemapQuestionImport\fromXML(), assTextQuestionImport\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_DEFAULT when no or invalid information is given
protected
type | $qtiItem |
Definition at line 262 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT.
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assTextSubsetImport\fromXML(), assFormulaQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assNumericImport\fromXML(), assImagemapQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
protected |
$feedbackIdent | ||
string | $prefix |
Definition at line 96 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), and assTextQuestionImport\fromXML().
|
protected |
ilQTIItem | $item |
Definition at line 187 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
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 public |
Definition at line 165 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item | |
string | $prefix |
Definition at line 106 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 37 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 213 of file class.assQuestionImport.php.
References $_SESSION, and ilObjQuestionPool\_getImportDirectory().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assTextSubsetImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assJavaAppletImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
protected |
returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir)
Definition at line 222 of file class.assQuestionImport.php.
References $_SESSION, and ilObjTest\_getImportDirectory().
Referenced by assLongMenuImport\fromXML(), assKprimChoiceImport\fromXML(), assFlashQuestionImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assTextSubsetImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assClozeTestImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assJavaAppletImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
|
protected |
Definition at line 228 of file class.assQuestionImport.php.
References $_SESSION, $i, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by assClozeTestImport\fromXML().
assQuestionImport::$object |
Definition at line 24 of file class.assQuestionImport.php.