|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class for question imports. More...
Inheritance diagram for assQuestionImport:
Collaboration diagram for assQuestionImport:Public Member Functions | |
| getQuestionId () | |
| getFeedbackGeneric ($item) | |
| fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, $import_mapping) | |
| Creates a question from a QTI file. More... | |
| importSuggestedSolutions (int $question_id, array $solution_from_import) | |
| QTIMaterialToString (ilQTIMaterial $a_material) | |
| Reads an QTI material tag and creates a text or XHTML string. 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_RTE when no or invalid information is given More... | |
| findSolutionTypeByValue (string $value) | |
| getSuggestedSolutionsRepo () | |
| deduceThumbSizeFromImportValue (?int $size) | |
Protected Attributes | |
| assQuestionSuggestedSolutionsDatabaseRepository | $suggestedsolution_repo = null |
Private Attributes | |
| Filesystem | $filesystem |
Class for question imports.
assQuestionImport is a basis class question imports
Definition at line 33 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item |
Definition at line 197 of file class.assQuestionImport.php.
References fetchLifecycle(), and ilQTIItem\getMetadataEntry().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assClozeTestImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 399 of file class.assQuestionImport.php.
References ILIAS\Repository\object().
Referenced by assKprimChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 286 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, and ILIAS\Repository\object().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assClozeTestImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $feedbackIdent | ||
| string | $prefix |
Definition at line 121 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), and assTextQuestionImport\fromXML().
Here is the caller graph for this function:
|
protected |
| ilQTIItem | $item |
Definition at line 212 of file class.assQuestionImport.php.
References Vendor\Package\$e, $lifecycle, ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), and ilQTIItem\getMetadataEntry().
Referenced by addGeneralMetadata().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 347 of file class.assQuestionImport.php.
Referenced by importSuggestedSolutions().
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
| 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 190 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item | |
| string | $prefix |
Definition at line 131 of file class.assQuestionImport.php.
References QTIMaterialToString().
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 62 of file class.assQuestionImport.php.
References QTIMaterialToString().
Referenced by assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), and assOrderingHorizontalImport\fromXML().
Here is the call graph for this function:
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 238 of file class.assQuestionImport.php.
References ilObjQuestionPool\_getImportDirectory(), and ilSession\get().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assTextSubsetImport\fromXML(), assClozeTestImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::getQuestionId | ( | ) |
Definition at line 57 of file class.assQuestionImport.php.
|
protected |
Definition at line 360 of file class.assQuestionImport.php.
References $dic, $suggestedsolution_repo, and ilQuestionPoolDIC\dic().
Referenced by importSuggestedSolutions().
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 246 of file class.assQuestionImport.php.
References ilObjTest\_getImportDirectory(), and ilSession\get().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assTextSubsetImport\fromXML(), assClozeTestImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::importSuggestedSolutions | ( | int | $question_id, |
| array | $solution_from_import | ||
| ) |
Definition at line 297 of file class.assQuestionImport.php.
References $path, CLIENT_WEB_DIR, ILIAS\Repository\filesystem(), findSolutionTypeByValue(), getSuggestedSolutionsRepo(), and ILIAS\Repository\object().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assClozeTestImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 251 of file class.assQuestionImport.php.
References ilRTE\_replaceMediaObjectImageSrc(), and ilSession\set().
Referenced by assClozeTestImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::QTIMaterialToString | ( | ilQTIMaterial | $a_material | ) |
Reads an QTI material tag and creates a text or XHTML string.
Definition at line 373 of file class.assQuestionImport.php.
References ilSession\get(), ilQTIMaterial\getMaterial(), ilQTIMaterial\getMaterialCount(), and ilSession\set().
Referenced by assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assClozeTestImport\fromXML(), assFormulaQuestionImport\fromXML(), assTextSubsetImport\fromXML(), assOrderingHorizontalImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), getFeedbackAnswerSpecific(), and getFeedbackGeneric().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 40 of file class.assQuestionImport.php.
| assQuestionImport::$object |
Definition at line 38 of file class.assQuestionImport.php.
|
protected |
Definition at line 359 of file class.assQuestionImport.php.
Referenced by getSuggestedSolutionsRepo().