|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class for question imports. More...
Inheritance diagram for assQuestionImport:
Collaboration diagram for assQuestionImport:Public Member Functions | |
| assQuestionImport (&$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 | |
| getFeedbackAnswerSpecific (ilQTIItem $item) | |
| 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 question imports.
assQuestionImport is a basis class question imports
Definition at line 15 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item |
Definition at line 182 of file class.assQuestionImport.php.
References ilQTIItem\getMetadataEntry().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), and assMultipleChoiceImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::assQuestionImport | ( | & | $a_object | ) |
assQuestionImport constructor
| object | $a_object | The question object @access public |
Definition at line 32 of file class.assQuestionImport.php.
|
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
@final @access protected
| type | $qtiItem |
Definition at line 242 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT.
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), and assMultipleChoiceImport\fromXML().
Here is the caller graph for this function:| 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 @access public |
Reimplemented in assClozeTestImport, assErrorTextImport, assFileUploadImport, assFlashQuestionImport, assFormulaQuestionImport, assImagemapQuestionImport, assJavaAppletImport, assMatchingQuestionImport, assNumericImport, assOrderingHorizontalImport, assOrderingQuestionImport, assSingleChoiceImport, assTextQuestionImport, and assTextSubsetImport.
Definition at line 175 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item |
Definition at line 115 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML().
Here is the caller graph for this function:| assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 37 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), and assFlashQuestionImport\fromXML().
Here is the caller graph for this function:
|
protected |
returns the full path to extracted qpl import archiv (qpl import dir + qpl archiv subdir)
Definition at line 190 of file class.assQuestionImport.php.
References $_SESSION, and ilObjQuestionPool\_getImportDirectory().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), and assMultipleChoiceImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir)
Definition at line 199 of file class.assQuestionImport.php.
References $_SESSION, and ilObjTest\_getImportDirectory().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assMatchingQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), and assMultipleChoiceImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 205 of file class.assQuestionImport.php.
References $_SESSION, $text, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by assClozeTestImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::$object |
Definition at line 24 of file class.assQuestionImport.php.