|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for assQuestionImport:
Collaboration diagram for assQuestionImport:Public Member Functions | |
| __construct ($a_object) | |
| assQuestionImport constructor More... | |
| getQuestionId () | |
| getFeedbackGeneric ($item) | |
| fromXML (&$item, $questionpool_id, &$tst_id, &$tst_object, &$question_counter, $import_mapping) | |
| Creates a question from a QTI file. More... | |
| importSuggestedSolution (int $question_id, string $value="", int $subquestion_index=0) | |
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... | |
| deduceThumbSizeFromImportValue (?int $size) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class for question imports
assQuestionImport is a basis class question imports
Definition at line 29 of file class.assQuestionImport.php.
| assQuestionImport::__construct | ( | $a_object | ) |
assQuestionImport constructor
| object | $a_object | The question object @access public |
Definition at line 42 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item |
Definition at line 187 of file class.assQuestionImport.php.
References fetchLifecycle(), and ilQTIItem\getMetadataEntry().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), and assTextSubsetImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 306 of file class.assQuestionImport.php.
References ILIAS\Repository\object().
Referenced by assKprimChoiceImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), and assSingleChoiceImport\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
@final @access protected
Definition at line 276 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, and ILIAS\Repository\object().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), and assTextSubsetImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $feedbackIdent | ||
| string | $prefix |
Reimplemented in assMatchingQuestionImport.
Definition at line 111 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 202 of file class.assQuestionImport.php.
References Vendor\Package\$e, 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:| 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 @access public |
Reimplemented in assClozeTestImport, assErrorTextImport, assFileUploadImport, assFlashQuestionImport, assFormulaQuestionImport, assImagemapQuestionImport, assKprimChoiceImport, assLongMenuImport, assMatchingQuestionImport, assMultipleChoiceImport, assNumericImport, assOrderingHorizontalImport, assOrderingQuestionImport, assSingleChoiceImport, assTextQuestionImport, and assTextSubsetImport.
Definition at line 180 of file class.assQuestionImport.php.
|
protected |
| ilQTIItem | $item | |
| string | $prefix |
Definition at line 121 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assMatchingQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), and assTextQuestionImport\fromXML().
Here is the caller graph for this function:| assQuestionImport::getFeedbackGeneric | ( | $item | ) |
Definition at line 52 of file class.assQuestionImport.php.
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assFormulaQuestionImport\fromXML(), and assOrderingHorizontalImport\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 228 of file class.assQuestionImport.php.
References ilObjQuestionPool\_getImportDirectory(), and ilSession\get().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), and assTextSubsetImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::getQuestionId | ( | ) |
Definition at line 47 of file class.assQuestionImport.php.
|
protected |
returns the full path to extracted tst import archiv (tst import dir + tst archiv subdir)
Definition at line 236 of file class.assQuestionImport.php.
References ilObjTest\_getImportDirectory(), and ilSession\get().
Referenced by assClozeTestImport\fromXML(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assKprimChoiceImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assOrderingQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assTextQuestionImport\fromXML(), and assTextSubsetImport\fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionImport::importSuggestedSolution | ( | int | $question_id, |
| string | $value = "", |
||
| int | $subquestion_index = 0 |
||
| ) |
Definition at line 287 of file class.assQuestionImport.php.
|
protected |
Definition at line 241 of file class.assQuestionImport.php.
References $i, $mobs, 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::$object |
Definition at line 34 of file class.assQuestionImport.php.