| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
Class for question imports. More...
 Inheritance diagram for assQuestionImport:
 Collaboration diagram for assQuestionImport: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) | |
| addQuestionToParentObjectAndBuildMappingEntry (int $questionpool_id, ?int $tst_id, int &$question_counter, ?ilObjTest &$tst_object) | |
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 assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 388 of file class.assQuestionImport.php.
References ilObject\getId().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 371 of file class.assQuestionImport.php.
References ILIAS\Repository\object().
Referenced by assMultipleChoiceImport\fromXML(), assSingleChoiceImport\fromXML(), assKprimChoiceImport\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 261 of file class.assQuestionImport.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, and ILIAS\Repository\object().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
| $feedbackIdent | ||
| string | $prefix | 
Definition at line 122 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 209 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 322 of file class.assQuestionImport.php.
Referenced by importSuggestedSolutions().
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assQuestionImport::getFeedbackGeneric | ( | $item | ) | 
Definition at line 63 of file class.assQuestionImport.php.
References QTIMaterialToString().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), and assOrderingHorizontalImport\fromXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| 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(), and ILIAS\Repository\object().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assTextQuestionImport\fromXML(), assOrderingQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), and assClozeTestImport\fromXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 232 of file class.assQuestionImport.php.
References $text, 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 348 of file class.assQuestionImport.php.
References ilSession\get(), ilQTIMaterial\getMaterial(), ilQTIMaterial\getMaterialCount(), and ilSession\set().
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assImagemapQuestionImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assClozeTestImport\fromXML(), getFeedbackAnswerSpecific(), and getFeedbackGeneric().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().