original_string: public function view_page($course, $quiz, $cm, $context, $viewobj) {
          $output = '';
          $output .= $this->view_information($quiz, $cm, $context, $viewobj->infomessages);
          $output .= $this->view_table($quiz, $context, $viewobj);
          $output .= $this->view_result_info($quiz, $context, $cm, $viewobj);
          $output .= $this->box($this->view_page_buttons($viewobj), 'quizattempt');
          return $output;
      }
code: public function view_page($course, $quiz, $cm, $context, $viewobj) {
          $output = '';
          $output .= $this->view_information($quiz, $cm, $context, $viewobj->infomessages);
          $output .= $this->view_table($quiz, $context, $viewobj);
          $output .= $this->view_result_info($quiz, $context, $cm, $viewobj);
          $output .= $this->box($this->view_page_buttons($viewobj), 'quizattempt');
          return $output;
      }
code_tokens: public function view_page ( $ course , $ quiz , $ cm , $ context , $ viewobj ) { $ output = '' ; $ output .= $ this -> view_information ( $ quiz , $ cm , $ context , $ viewobj -> infomessages ) ; $ output .= $ this -> view_table ( $ quiz , $ context , $ viewobj ) ; $ output .= $ this -> view_result_info ( $ quiz , $ context , $ cm , $ viewobj ) ; $ output .= $ this -> box ( $ this -> view_page_buttons ( $ viewobj ) , 'quizattempt' ) ; return $ output ; }
docstring: Generates the view page
  
  @param int $course The id of the course
  @param array $quiz Array conting quiz data
  @param int $cm Course Module ID
  @param int $context The page context ID
  @param array $infomessages information about this quiz
  @param mod_quiz_view_object $viewobj
  @param string $buttontext text for the start/continue attempt button, if
  it should be shown.
  @param array $infomessages further information about why the student cannot
  attempt this quiz now, if appicable this quiz
docstring_tokens: Generates the view page