ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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... | |
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) | |
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 exports
exportQuestion is a basis class question exports
Definition at line 29 of file class.assQuestionExport.php.
assQuestionExport::__construct | ( | $a_object | ) |
assQuestionExport constructor
object | $a_object | The question object public |
Definition at line 42 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 205 of file class.assQuestionExport.php.
References addQtiMetaDataField(), and ILIAS\Repository\object().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFlashQuestionExport\toXML(), assSingleChoiceExport\toXML(), assMatchingQuestionExport\toXML(), assErrorTextExport\toXML(), assFileUploadExport\toXML(), assMultipleChoiceExport\toXML(), assNumericExport\toXML(), assTextSubsetExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assImagemapQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
|
protected |
ilXmlWriter | $a_xml_writer |
Definition at line 50 of file class.assQuestionExport.php.
References $index, ILIAS\Repository\object(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by assErrorTextExport\toXML(), and assTextQuestionExport\toXML().
|
protected |
ilXmlWriter | $xmlwriter |
Definition at line 217 of file class.assQuestionExport.php.
References addQtiMetaDataField(), and ILIAS\Repository\object().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFlashQuestionExport\toXML(), assSingleChoiceExport\toXML(), assMatchingQuestionExport\toXML(), assErrorTextExport\toXML(), assFileUploadExport\toXML(), assMultipleChoiceExport\toXML(), assNumericExport\toXML(), assTextSubsetExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assImagemapQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
|
protected |
ilXmlWriter | $a_xml_writer |
Definition at line 75 of file class.assQuestionExport.php.
References exportFeedbackOnly().
Referenced by assErrorTextExport\toXML(), assOrderingHorizontalExport\toXML(), and assFormulaQuestionExport\toXML().
|
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 189 of file class.assQuestionExport.php.
References ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by addAdditionalContentEditingModeInformation(), addGeneralMetadata(), assSingleChoiceExport\toXML(), assMultipleChoiceExport\toXML(), and assTextQuestionExport\toXML().
|
protected |
Definition at line 236 of file class.assQuestionExport.php.
References $data, ilAssQuestionHintList\getListByQuestionId(), ILIAS\Repository\int(), ILIAS\Repository\object(), and ilXmlWriter\xmlElement().
Referenced by assLongMenuExport\toXML(), assKprimChoiceExport\toXML(), assFlashQuestionExport\toXML(), assSingleChoiceExport\toXML(), assMatchingQuestionExport\toXML(), assErrorTextExport\toXML(), assFileUploadExport\toXML(), assMultipleChoiceExport\toXML(), assNumericExport\toXML(), assTextSubsetExport\toXML(), assFormulaQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assImagemapQuestionExport\toXML(), assTextQuestionExport\toXML(), assOrderingQuestionExport\toXML(), and assClozeTestExport\toXML().
assQuestionExport::exportFeedbackOnly | ( | $a_xml_writer | ) |
Definition at line 80 of file class.assQuestionExport.php.
References ILIAS\Repository\object().
Referenced by addGenericFeedback(), assFileUploadExport\toXML(), and assFlashQuestionExport\toXML().
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 174 of file class.assQuestionExport.php.
assQuestionExport::$object |
Definition at line 34 of file class.assQuestionExport.php.
Referenced by assClozeTestExport\__construct().
const assQuestionExport::ITEM_SOLUTIONHINT = 'solutionhint' |
Definition at line 234 of file class.assQuestionExport.php.
Referenced by ilQTIParser\handlerParseEndTag(), and ilQTIParser\handlerVerifyBeginTag().