当前位置: 首页>>代码示例>>PHP>>正文


PHP assQuestion::addQTIMaterial方法代码示例

本文整理汇总了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");
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:59,代码来源:class.assQuestionExport.php


注:本文中的assQuestion::addQTIMaterial方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。