|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Class for question exports. More...
Inheritance diagram for assQuestionExport:
Collaboration diagram for assQuestionExport:Public Member Functions | |
| __construct ($a_object) | |
| assQuestionExport constructor More... | |
| exportFeedbackOnly ($a_xml_writer) | |
| toXML ($a_include_header=true, $a_include_binary=true, $a_shuffle=false, $test_output=false, $force_image_references=false) | |
| Returns a QTI xml representation of the question Returns a QTI xml representation of the question and sets the internal domxml variable with the DOM XML representation of the QTI xml representation. More... | |
| addQTIMaterial (ilXmlWriter $a_xml_writer, string $a_material, bool $close_material_tag=true, bool $add_mobs=true) | |
Data Fields | |
| $object | |
| const | ITEM_SOLUTIONHINT = 'solutionhint' |
Protected Member Functions | |
| addAnswerSpecificFeedback (ilXmlWriter $a_xml_writer, $answers) | |
| addGenericFeedback (ilXmlWriter $a_xml_writer) | |
| addQtiMetaDataField (ilXmlWriter $a_xml_writer, $fieldLabel, $fieldValue) | |
| adds a qti meta data field with given name and value to the passed xml writer (xml writer must be in context of opened "qtimetadata" tag) More... | |
| addAdditionalContentEditingModeInformation (ilXmlWriter $a_xml_writer) | |
| adds a qti meta data field for ilias specific information of "additional content editing mode" (xml writer must be in context of opened "qtimetadata" tag) More... | |
| addGeneralMetadata (ilXmlWriter $xmlwriter) | |
| addSolutionHints (ilXmlWriter $writer) | |
| addSuggestedSolution (ilXmlWriter $writer) | |
Class for question exports.
exportQuestion is a basis class question exports
Definition at line 30 of file class.assQuestionExport.php.
| assQuestionExport::__construct | ( | $a_object | ) |
assQuestionExport constructor
| object | $a_object | The question object public |
Definition at line 43 of file class.assQuestionExport.php.
|
finalprotected |
adds a qti meta data field for ilias specific information of "additional content editing mode" (xml writer must be in context of opened "qtimetadata" tag)
protected
| ilXmlWriter | $a_xml_writer |
Definition at line 206 of file class.assQuestionExport.php.
References addQtiMetaDataField(), and ILIAS\Repository\object().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFileUploadExport\toXML(), assErrorTextExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assTextSubsetExport\toXML(), assNumericExport\toXML(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assMatchingQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilXmlWriter | $a_xml_writer |
Definition at line 51 of file class.assQuestionExport.php.
References addQTIMaterial(), ILIAS\Repository\object(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by assErrorTextExport\toXML(), and assTextQuestionExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilXmlWriter | $xmlwriter |
Definition at line 218 of file class.assQuestionExport.php.
References addQtiMetaDataField(), and ILIAS\Repository\object().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFileUploadExport\toXML(), assErrorTextExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assTextSubsetExport\toXML(), assNumericExport\toXML(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assMatchingQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilXmlWriter | $a_xml_writer |
Definition at line 76 of file class.assQuestionExport.php.
References exportFeedbackOnly().
Referenced by assErrorTextExport\toXML(), assOrderingHorizontalExport\toXML(), and assFormulaQuestionExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionExport::addQTIMaterial | ( | ilXmlWriter | $a_xml_writer, |
| string | $a_material, | ||
| bool | $close_material_tag = true, |
||
| bool | $add_mobs = true |
||
| ) |
Definition at line 298 of file class.assQuestionExport.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), IL_INST_ID, ilUtil\isHTML(), ILIAS\Repository\object(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by addAnswerSpecificFeedback(), assClozeTestExport\exportAnswerSpecificFeedbacks(), exportFeedbackOnly(), assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFileUploadExport\toXML(), assErrorTextExport\toXML(), assTextSubsetExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assSingleChoiceExport\toXML(), assNumericExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assMatchingQuestionExport\toXML(), assOrderingQuestionExport\toXML(), assTextQuestionExport\toXML(), and assClozeTestExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
finalprotected |
adds a qti meta data field with given name and value to the passed xml writer (xml writer must be in context of opened "qtimetadata" tag)
protected
| ilXmlWriter | $a_xml_writer | |
| string | $fieldLabel | |
| string | $fieldValue |
Definition at line 190 of file class.assQuestionExport.php.
References ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by addAdditionalContentEditingModeInformation(), addGeneralMetadata(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), and assTextQuestionExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 237 of file class.assQuestionExport.php.
References $data, Vendor\Package\$e, ilAssQuestionHintList\getListByQuestionId(), ILIAS\Repository\int(), ILIAS\Repository\object(), and ilXmlWriter\xmlElement().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFileUploadExport\toXML(), assErrorTextExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assTextSubsetExport\toXML(), assNumericExport\toXML(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assMatchingQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 262 of file class.assQuestionExport.php.
References IL_INST_ID, ILIAS\Repository\object(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFileUploadExport\toXML(), assErrorTextExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assTextSubsetExport\toXML(), assNumericExport\toXML(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), assImagemapQuestionExport\toXML(), assMatchingQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionExport::exportFeedbackOnly | ( | $a_xml_writer | ) |
Definition at line 81 of file class.assQuestionExport.php.
References addQTIMaterial(), and ILIAS\Repository\object().
Referenced by addGenericFeedback(), and assFileUploadExport\toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionExport::toXML | ( | $a_include_header = true, |
|
$a_include_binary = true, |
|||
$a_shuffle = false, |
|||
$test_output = false, |
|||
$force_image_references = false |
|||
| ) |
Returns a QTI xml representation of the question Returns a QTI xml representation of the question and sets the internal domxml variable with the DOM XML representation of the QTI xml representation.
Definition at line 175 of file class.assQuestionExport.php.
| assQuestionExport::$object |
Definition at line 35 of file class.assQuestionExport.php.
Referenced by assClozeTestExport\__construct().
| const assQuestionExport::ITEM_SOLUTIONHINT = 'solutionhint' |
Definition at line 235 of file class.assQuestionExport.php.
Referenced by ilQTIParser\handlerParseBeginTag(), ilQTIParser\handlerParseEndTag(), and ilQTIParser\handlerVerifyBeginTag().