Ejemplo n.º 1
0
 /**
  * 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();
 }