original_string: public function print_next_wizard_page($question, $form, $course) {
          global $CFG, $SESSION, $COURSE;
  
          // Catch invalid navigation & reloads.
          if (empty($question->id) && empty($SESSION->calculated)) {
              redirect('edit.php?courseid='.$COURSE->id, 'The page you are loading has expired.', 3);
          }
  
          // See where we're coming from.
          switch($form->wizardpage) {
              case 'question':
                  require("{$CFG->dirroot}/question/type/calculated/datasetdefinitions.php");
                  break;
              case 'datasetdefinitions':
              case 'datasetitems':
                  require("{$CFG->dirroot}/question/type/calculated/datasetitems.php");
                  break;
              default:
                  print_error('invalidwizardpage', 'question');
                  break;
          }
      }
code: public function print_next_wizard_page($question, $form, $course) {
          global $CFG, $SESSION, $COURSE;
  
          // Catch invalid navigation & reloads.
          if (empty($question->id) && empty($SESSION->calculated)) {
              redirect('edit.php?courseid='.$COURSE->id, 'The page you are loading has expired.', 3);
          }
  
          // See where we're coming from.
          switch($form->wizardpage) {
              case 'question':
                  require("{$CFG->dirroot}/question/type/calculated/datasetdefinitions.php");
                  break;
              case 'datasetdefinitions':
              case 'datasetitems':
                  require("{$CFG->dirroot}/question/type/calculated/datasetitems.php");
                  break;
              default:
                  print_error('invalidwizardpage', 'question');
                  break;
          }
      }
code_tokens: public function print_next_wizard_page ( $ question , $ form , $ course ) { global $ CFG , $ SESSION , $ COURSE ; // Catch invalid navigation & reloads. if ( empty ( $ question -> id ) && empty ( $ SESSION -> calculated ) ) { redirect ( 'edit.php?courseid=' . $ COURSE -> id , 'The page you are loading has expired.' , 3 ) ; } // See where we're coming from. switch ( $ form -> wizardpage ) { case 'question' : require ( "{$CFG->dirroot}/question/type/calculated/datasetdefinitions.php" ) ; break ; case 'datasetdefinitions' : case 'datasetitems' : require ( "{$CFG->dirroot}/question/type/calculated/datasetitems.php" ) ; break ; default : print_error ( 'invalidwizardpage' , 'question' ) ; break ; } }
docstring: This gets called by editquestion.php after the standard question is saved.
docstring_tokens: This gets called by editquestion . php after the standard question is saved .