ILIAS
Release_4_4_x_branch Revision 61816
|
Class for question imports. More...
Public Member Functions | |
assQuestionImport (&$a_object) | |
assQuestionImport constructor | |
getFeedbackGeneric ($item) | |
fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping) | |
Creates a question from a QTI file. |
Data Fields | |
$object |
Protected Member Functions | |
addGeneralMetadata (ilQTIItem $item) | |
getQplImportArchivDirectory () | |
returns the full path to extracted qpl import archiv (qpl import dir + qpl archiv subdir) | |
getTstImportArchivDirectory () | |
returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir) | |
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 |
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 132 of file class.assQuestionImport.php.
References ilQTIItem\getMetadataEntry().
Referenced by assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assJavaAppletImport\fromXML(), assImagemapQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assClozeTestImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::assQuestionImport | ( | & | $a_object | ) |
assQuestionImport constructor
object | $a_object | The question object 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
protected
type | $qtiItem |
Definition at line 164 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT.
Referenced by assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assJavaAppletImport\fromXML(), assImagemapQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assClozeTestImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
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 |
Reimplemented in assMatchingQuestionImport, assClozeTestImport, assFormulaQuestionImport, assImagemapQuestionImport, assJavaAppletImport, assNumericImport, assOrderingHorizontalImport, assOrderingQuestionImport, assSingleChoiceImport, assTextQuestionImport, assTextSubsetImport, assErrorTextImport, assFileUploadImport, and assFlashQuestionImport.
Definition at line 125 of file class.assQuestionImport.php.
assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 37 of file class.assQuestionImport.php.
Referenced by assFileUploadImport\fromXML(), and assFlashQuestionImport\fromXML().
|
protected |
returns the full path to extracted qpl import archiv (qpl import dir + qpl archiv subdir)
Definition at line 140 of file class.assQuestionImport.php.
References $_SESSION, and ilObjQuestionPool\_getImportDirectory().
Referenced by assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assClozeTestImport\fromXML(), assTextSubsetImport\fromXML(), assJavaAppletImport\fromXML(), assImagemapQuestionImport\fromXML(), assMultipleChoiceImport\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 149 of file class.assQuestionImport.php.
References $_SESSION, and ilObjTest\_getImportDirectory().
Referenced by assErrorTextImport\fromXML(), assFlashQuestionImport\fromXML(), assFileUploadImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assClozeTestImport\fromXML(), assTextSubsetImport\fromXML(), assJavaAppletImport\fromXML(), assImagemapQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::$object |
Definition at line 24 of file class.assQuestionImport.php.