original_string: protected function define_my_steps() {
          // Generate the quiz.xml file containing all the quiz information
          // and annotating used questions.
          $this->add_step(new backup_quiz_activity_structure_step('quiz_structure', 'quiz.xml'));
  
          // Note: Following  steps must be present
          // in all the activities using question banks (only quiz for now)
          // TODO: Specialise these step to a new subclass of backup_activity_task.
  
          // Process all the annotated questions to calculate the question
          // categories needing to be included in backup for this activity
          // plus the categories belonging to the activity context itself.
          $this->add_step(new backup_calculate_question_categories('activity_question_categories'));
  
          // Clean backup_temp_ids table from questions. We already
          // have used them to detect question_categories and aren't
          // needed anymore.
          $this->add_step(new backup_delete_temp_questions('clean_temp_questions'));
      }
code: protected function define_my_steps() {
          // Generate the quiz.xml file containing all the quiz information
          // and annotating used questions.
          $this->add_step(new backup_quiz_activity_structure_step('quiz_structure', 'quiz.xml'));
  
          // Note: Following  steps must be present
          // in all the activities using question banks (only quiz for now)
          // TODO: Specialise these step to a new subclass of backup_activity_task.
  
          // Process all the annotated questions to calculate the question
          // categories needing to be included in backup for this activity
          // plus the categories belonging to the activity context itself.
          $this->add_step(new backup_calculate_question_categories('activity_question_categories'));
  
          // Clean backup_temp_ids table from questions. We already
          // have used them to detect question_categories and aren't
          // needed anymore.
          $this->add_step(new backup_delete_temp_questions('clean_temp_questions'));
      }
code_tokens: protected function define_my_steps ( ) { // Generate the quiz.xml file containing all the quiz information // and annotating used questions. $ this -> add_step ( new backup_quiz_activity_structure_step ( 'quiz_structure' , 'quiz.xml' ) ) ; // Note: Following  steps must be present // in all the activities using question banks (only quiz for now) // TODO: Specialise these step to a new subclass of backup_activity_task. // Process all the annotated questions to calculate the question // categories needing to be included in backup for this activity // plus the categories belonging to the activity context itself. $ this -> add_step ( new backup_calculate_question_categories ( 'activity_question_categories' ) ) ; // Clean backup_temp_ids table from questions. We already // have used them to detect question_categories and aren't // needed anymore. $ this -> add_step ( new backup_delete_temp_questions ( 'clean_temp_questions' ) ) ; }
docstring: Defines backup steps to store the instance data and required questions
docstring_tokens: Defines backup steps to store the instance data and required questions