ILIAS
Release_4_4_x_branch Revision 61816
|
Class for question exports. More...
Public Member Functions | |
assQuestionExport (&$a_object) | |
assQuestionExport constructor | |
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. |
Data Fields | |
$object |
Protected Member Functions | |
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) | |
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) | |
addGeneralMetadata (ilXmlWriter $xmlwriter) |
Class for question exports.
exportQuestion is a basis class question exports
Definition at line 15 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 168 of file class.assQuestionExport.php.
References addQtiMetaDataField().
Referenced by assErrorTextExport\toXML(), assFlashQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assFileUploadExport\toXML(), assOrderingQuestionExport\toXML(), assFormulaQuestionExport\toXML(), assNumericExport\toXML(), assMultipleChoiceExport\toXML(), assMatchingQuestionExport\toXML(), assJavaAppletExport\toXML(), assImagemapQuestionExport\toXML(), assTextSubsetExport\toXML(), assClozeTestExport\toXML(), assSingleChoiceExport\toXML(), and assTextQuestionExport\toXML().
|
protected |
ilXmlWriter | $xmlwriter |
Definition at line 178 of file class.assQuestionExport.php.
References addQtiMetaDataField().
Referenced by assErrorTextExport\toXML(), assFlashQuestionExport\toXML(), assOrderingHorizontalExport\toXML(), assFileUploadExport\toXML(), assOrderingQuestionExport\toXML(), assFormulaQuestionExport\toXML(), assNumericExport\toXML(), assMultipleChoiceExport\toXML(), assMatchingQuestionExport\toXML(), assJavaAppletExport\toXML(), assImagemapQuestionExport\toXML(), assTextSubsetExport\toXML(), assClozeTestExport\toXML(), assSingleChoiceExport\toXML(), and assTextQuestionExport\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 152 of file class.assQuestionExport.php.
References ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by addAdditionalContentEditingModeInformation(), and addGeneralMetadata().
assQuestionExport::assQuestionExport | ( | & | $a_object | ) |
assQuestionExport constructor
object | $a_object | The question object public |
Definition at line 32 of file class.assQuestionExport.php.
assQuestionExport::exportFeedbackOnly | ( | $a_xml_writer | ) |
Definition at line 37 of file class.assQuestionExport.php.
Referenced by 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
Reimplemented in assClozeTestExport, assFormulaQuestionExport, assImagemapQuestionExport, assJavaAppletExport, assMatchingQuestionExport, assMultipleChoiceExport, assNumericExport, assOrderingQuestionExport, assSingleChoiceExport, assTextQuestionExport, assTextSubsetExport, assFileUploadExport, assFlashQuestionExport, assOrderingHorizontalExport, and assErrorTextExport.
Definition at line 138 of file class.assQuestionExport.php.
assQuestionExport::$object |
Definition at line 24 of file class.assQuestionExport.php.