本文整理汇总了PHP中question_type::display_question_editing_page方法的典型用法代码示例。如果您正苦于以下问题:PHP question_type::display_question_editing_page方法的具体用法?PHP question_type::display_question_editing_page怎么用?PHP question_type::display_question_editing_page使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类question_type
的用法示例。
在下文中一共展示了question_type::display_question_editing_page方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_question_editing_page
/**
* This method should be overriden if you want to include a special heading or some other
* html on a question editing page besides the question editing form.
*
* @param question_edit_form $mform a child of question_edit_form
* @param object $question
* @param string $wizardnow is '' for first page.
*/
public function display_question_editing_page($mform, $question, $wizardnow)
{
global $OUTPUT;
switch ($wizardnow) {
case '':
// On the first page, the default display is fine.
parent::display_question_editing_page($mform, $question, $wizardnow);
return;
case 'datasetdefinitions':
echo $OUTPUT->heading_with_help(get_string('choosedatasetproperties', 'qtype_calculated'), 'questiondatasets', 'qtype_calculated');
break;
case 'datasetitems':
echo $OUTPUT->heading_with_help(get_string('editdatasets', 'qtype_calculated'), 'questiondatasets', 'qtype_calculated');
break;
}
$mform->display();
}