本文整理匯總了PHP中assQuestion::addQTIMaterial方法的典型用法代碼示例。如果您正苦於以下問題:PHP assQuestion::addQTIMaterial方法的具體用法?PHP assQuestion::addQTIMaterial怎麽用?PHP assQuestion::addQTIMaterial使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類assQuestion
的用法示例。
在下文中一共展示了assQuestion::addQTIMaterial方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: exportFeedbackOnly
function exportFeedbackOnly($a_xml_writer)
{
$feedback_allcorrect = $this->object->feedbackOBJ->getGenericFeedbackExportPresentation($this->object->getId(), true);
$feedback_onenotcorrect = $this->object->feedbackOBJ->getGenericFeedbackExportPresentation($this->object->getId(), false);
if (strlen($feedback_allcorrect . $feedback_onenotcorrect)) {
$a_xml_writer->xmlStartTag("resprocessing");
$a_xml_writer->xmlStartTag("outcomes");
$a_xml_writer->xmlStartTag("decvar");
$a_xml_writer->xmlEndTag("decvar");
$a_xml_writer->xmlEndTag("outcomes");
if (strlen($feedback_allcorrect)) {
$attrs = array("continue" => "Yes");
$a_xml_writer->xmlStartTag("respcondition", $attrs);
// qti conditionvar
$a_xml_writer->xmlStartTag("conditionvar");
$attrs = array("respident" => "points");
$a_xml_writer->xmlElement("varequal", $attrs, $this->object->getPoints());
$a_xml_writer->xmlEndTag("conditionvar");
// qti displayfeedback
$attrs = array("feedbacktype" => "Response", "linkrefid" => "response_allcorrect");
$a_xml_writer->xmlElement("displayfeedback", $attrs);
$a_xml_writer->xmlEndTag("respcondition");
}
if (strlen($feedback_onenotcorrect)) {
$attrs = array("continue" => "Yes");
$a_xml_writer->xmlStartTag("respcondition", $attrs);
// qti conditionvar
$a_xml_writer->xmlStartTag("conditionvar");
$a_xml_writer->xmlStartTag("not");
$attrs = array("respident" => "points");
$a_xml_writer->xmlElement("varequal", $attrs, $this->object->getPoints());
$a_xml_writer->xmlEndTag("not");
$a_xml_writer->xmlEndTag("conditionvar");
// qti displayfeedback
$attrs = array("feedbacktype" => "Response", "linkrefid" => "response_onenotcorrect");
$a_xml_writer->xmlElement("displayfeedback", $attrs);
$a_xml_writer->xmlEndTag("respcondition");
}
$a_xml_writer->xmlEndTag("resprocessing");
}
if (strlen($feedback_allcorrect)) {
$attrs = array("ident" => "response_allcorrect", "view" => "All");
$a_xml_writer->xmlStartTag("itemfeedback", $attrs);
// qti flow_mat
$a_xml_writer->xmlStartTag("flow_mat");
$this->object->addQTIMaterial($a_xml_writer, $feedback_allcorrect);
$a_xml_writer->xmlEndTag("flow_mat");
$a_xml_writer->xmlEndTag("itemfeedback");
}
if (strlen($feedback_onenotcorrect)) {
$attrs = array("ident" => "response_onenotcorrect", "view" => "All");
$a_xml_writer->xmlStartTag("itemfeedback", $attrs);
// qti flow_mat
$a_xml_writer->xmlStartTag("flow_mat");
$this->object->addQTIMaterial($a_xml_writer, $feedback_onenotcorrect);
$a_xml_writer->xmlEndTag("flow_mat");
$a_xml_writer->xmlEndTag("itemfeedback");
}
}