ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Class for question imports. More...
Public Member Functions | |
getQuestionId () | |
getFeedbackGeneric ($item) | |
fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping) | |
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) | |
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 | |
SuggestedSolutionsDatabaseRepository | $suggestedsolution_repo = null |
Private Attributes | |
Filesystem | $filesystem |
Class for question imports.
assQuestionImport is a basis class question imports
Definition at line 34 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item |
Definition at line 194 of file class.assQuestionImport.php.
References fetchLifecycle(), and ilQTIItem\getMetadataEntry().
Referenced by assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
|
protected |
Definition at line 371 of file class.assQuestionImport.php.
References null, and ILIAS\Repository\object().
Referenced by assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assKprimChoiceImport\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 261 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, and ILIAS\Repository\object().
Referenced by assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
|
protected |
$feedbackIdent | ||
string | $prefix |
Definition at line 122 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), and assTextQuestionImport\fromXML().
|
protected |
ilQTIItem | $item |
Definition at line 209 of file class.assQuestionImport.php.
References Vendor\Package\$e, $lifecycle, ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), and ilQTIItem\getMetadataEntry().
Referenced by addGeneralMetadata().
|
protected |
Definition at line 322 of file class.assQuestionImport.php.
References null.
Referenced by importSuggestedSolutions().
assQuestionImport::fromXML | ( | string | $importdirectory, |
int | $user_id, | ||
ilQTIItem | $item, | ||
int | $questionpool_id, | ||
?int | $tst_id, | ||
?ilObject & | $tst_object, | ||
int & | $question_counter, | ||
array | $import_mapping | ||
) |
Definition at line 178 of file class.assQuestionImport.php.
|
protected |
ilQTIItem | $item | |
string | $prefix |
Definition at line 132 of file class.assQuestionImport.php.
References QTIMaterialToString().
Referenced by assErrorTextImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), and assMatchingQuestionImport\fromXML().
assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 63 of file class.assQuestionImport.php.
References QTIMaterialToString().
Referenced by assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), and assOrderingHorizontalImport\fromXML().
assQuestionImport::getQuestionId | ( | ) |
Definition at line 58 of file class.assQuestionImport.php.
|
protected |
Definition at line 335 of file class.assQuestionImport.php.
References $dic, and $suggestedsolution_repo.
Referenced by importSuggestedSolutions().
assQuestionImport::importSuggestedSolutions | ( | int | $question_id, |
array | $solution_from_import | ||
) |
Definition at line 272 of file class.assQuestionImport.php.
References $path, CLIENT_WEB_DIR, ILIAS\Repository\filesystem(), findSolutionTypeByValue(), getSuggestedSolutionsRepo(), null, and ILIAS\Repository\object().
Referenced by assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingHorizontalImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
|
protected |
Definition at line 232 of file class.assQuestionImport.php.
References ilRTE\_replaceMediaObjectImageSrc(), null, and ilSession\set().
Referenced by assClozeTestImport\fromXML().
assQuestionImport::QTIMaterialToString | ( | ilQTIMaterial | $a_material | ) |
Reads an QTI material tag and creates a text or XHTML string.
Definition at line 348 of file class.assQuestionImport.php.
References ilSession\get(), ilQTIMaterial\getMaterial(), ilQTIMaterial\getMaterialCount(), and ilSession\set().
Referenced by assLongMenuImport\fromXML(), assFileUploadImport\fromXML(), assErrorTextImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), assClozeTestImport\fromXML(), getFeedbackAnswerSpecific(), and getFeedbackGeneric().
|
private |
Definition at line 41 of file class.assQuestionImport.php.
assQuestionImport::$object |
Definition at line 39 of file class.assQuestionImport.php.
|
protected |
Definition at line 334 of file class.assQuestionImport.php.
Referenced by getSuggestedSolutionsRepo().