コード例 #1
0
ファイル: abstractqtype.php プロジェクト: nadavkav/MoodleTAO
 /**
  * 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
0
 function display_question_editing_page(&$mform, $question, $wizardnow)
 {
     parent::display_question_editing_page($mform, $question, $wizardnow);
 }
コード例 #3
0
ファイル: questiontype.php プロジェクト: vuchannguyen/web
 /**
  * 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();
 }