本文整理汇总了PHP中default_questiontype::display_question_editing_page方法的典型用法代码示例。如果您正苦于以下问题:PHP default_questiontype::display_question_editing_page方法的具体用法?PHP default_questiontype::display_question_editing_page怎么用?PHP default_questiontype::display_question_editing_page使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类default_questiontype
的用法示例。
在下文中一共展示了default_questiontype::display_question_editing_page方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
/**
* 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.
*/
function display_question_editing_page(&$mform, $question, $wizardnow)
{
switch ($wizardnow) {
case '':
//on first page default display is fine
parent::display_question_editing_page($mform, $question, $wizardnow);
return;
break;
case 'datasetdefinitions':
print_heading_with_help(get_string("choosedatasetproperties", "quiz"), "questiondatasets", "quiz");
break;
case 'datasetitems':
print_heading_with_help(get_string("editdatasets", "quiz"), 'questiondatasets', "quiz");
break;
}
$mform->display();
}
示例2:
function display_question_editing_page(&$mform, $question, $wizardnow)
{
parent::display_question_editing_page($mform, $question, $wizardnow);
}
示例3: switch
/**
* 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.
*/
function display_question_editing_page(&$mform, $question, $wizardnow)
{
global $OUTPUT;
switch ($wizardnow) {
case '':
//on first page default display is fine
parent::display_question_editing_page($mform, $question, $wizardnow);
return;
break;
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();
}