original_string: public function load_and_initialise_questions_for_calculations($quiz) {
          // Load the questions.
          $questions = quiz_report_get_significant_questions($quiz);
          $questionids = array();
          foreach ($questions as $question) {
              $questionids[] = $question->id;
          }
          $fullquestions = question_load_questions($questionids);
          foreach ($questions as $qno => $question) {
              $q = $fullquestions[$question->id];
              $q->maxmark = $question->maxmark;
              $q->slot = $qno;
              $q->number = $question->number;
              $questions[$qno] = $q;
          }
          return $questions;
      }
code: public function load_and_initialise_questions_for_calculations($quiz) {
          // Load the questions.
          $questions = quiz_report_get_significant_questions($quiz);
          $questionids = array();
          foreach ($questions as $question) {
              $questionids[] = $question->id;
          }
          $fullquestions = question_load_questions($questionids);
          foreach ($questions as $qno => $question) {
              $q = $fullquestions[$question->id];
              $q->maxmark = $question->maxmark;
              $q->slot = $qno;
              $q->number = $question->number;
              $questions[$qno] = $q;
          }
          return $questions;
      }
code_tokens: public function load_and_initialise_questions_for_calculations ( $ quiz ) { // Load the questions. $ questions = quiz_report_get_significant_questions ( $ quiz ) ; $ questionids = array ( ) ; foreach ( $ questions as $ question ) { $ questionids [ ] = $ question -> id ; } $ fullquestions = question_load_questions ( $ questionids ) ; foreach ( $ questions as $ qno => $ question ) { $ q = $ fullquestions [ $ question -> id ] ; $ q -> maxmark = $ question -> maxmark ; $ q -> slot = $ qno ; $ q -> number = $ question -> number ; $ questions [ $ qno ] = $ q ; } return $ questions ; }
docstring: Load the questions in this quiz and add some properties to the objects needed in the reports.
  
  @param object $quiz the quiz.
  @return array of questions for this quiz.
docstring_tokens: Load the questions in this quiz and add some properties to the objects needed in the reports .