original_string: protected function analyse_responses_for_all_questions_and_subquestions($questions, $subquestions, $qubaids,
                                                                              $whichtries, $progress = null) {
          if ($progress === null) {
              $progress = new \core\progress\none();
          }
  
          // Starting response analysis tasks.
          $progress->start_progress('', count($questions) + count($subquestions));
  
          $done = $this->analyse_responses_for_questions($questions, $qubaids, $whichtries, $progress);
  
          $this->analyse_responses_for_questions($subquestions, $qubaids, $whichtries, $progress, $done);
  
          // Finished all response analysis tasks.
          $progress->end_progress();
      }
code: protected function analyse_responses_for_all_questions_and_subquestions($questions, $subquestions, $qubaids,
                                                                              $whichtries, $progress = null) {
          if ($progress === null) {
              $progress = new \core\progress\none();
          }
  
          // Starting response analysis tasks.
          $progress->start_progress('', count($questions) + count($subquestions));
  
          $done = $this->analyse_responses_for_questions($questions, $qubaids, $whichtries, $progress);
  
          $this->analyse_responses_for_questions($subquestions, $qubaids, $whichtries, $progress, $done);
  
          // Finished all response analysis tasks.
          $progress->end_progress();
      }
code_tokens: protected function analyse_responses_for_all_questions_and_subquestions ( $ questions , $ subquestions , $ qubaids , $ whichtries , $ progress = null ) { if ( $ progress === null ) { $ progress = new \ core \ progress \ none ( ) ; } // Starting response analysis tasks. $ progress -> start_progress ( '' , count ( $ questions ) + count ( $ subquestions ) ) ; $ done = $ this -> analyse_responses_for_questions ( $ questions , $ qubaids , $ whichtries , $ progress ) ; $ this -> analyse_responses_for_questions ( $ subquestions , $ qubaids , $ whichtries , $ progress , $ done ) ; // Finished all response analysis tasks. $ progress -> end_progress ( ) ; }
docstring: Analyse responses for all questions and sub questions in this quiz.
  
  @param object[] $questions as returned by self::load_and_initialise_questions_for_calculations
  @param object[] $subquestions full question objects.
  @param qubaid_condition $qubaids the question usages whose responses to analyse.
  @param string $whichtries which tries to analyse \question_attempt::FIRST_TRY, LAST_TRY or ALL_TRIES.
  @param null|\core\progress\base $progress Used to indicate progress of task.
docstring_tokens: Analyse responses for all questions and sub questions in this quiz .