original_string: public function view_page_buttons(mod_quiz_view_object $viewobj) {
          global $CFG;
          $output = '';
  
          if (!$viewobj->quizhasquestions) {
              $output .= $this->no_questions_message($viewobj->canedit, $viewobj->editurl);
          }
  
          $output .= $this->access_messages($viewobj->preventmessages);
  
          if ($viewobj->buttontext) {
              $output .= $this->start_attempt_button($viewobj->buttontext,
                      $viewobj->startattempturl, $viewobj->preflightcheckform,
                      $viewobj->popuprequired, $viewobj->popupoptions);
          }
  
          if ($viewobj->showbacktocourse) {
              $output .= $this->single_button($viewobj->backtocourseurl,
                      get_string('backtocourse', 'quiz'), 'get',
                      array('class' => 'continuebutton'));
          }
  
          return $output;
      }
code: public function view_page_buttons(mod_quiz_view_object $viewobj) {
          global $CFG;
          $output = '';
  
          if (!$viewobj->quizhasquestions) {
              $output .= $this->no_questions_message($viewobj->canedit, $viewobj->editurl);
          }
  
          $output .= $this->access_messages($viewobj->preventmessages);
  
          if ($viewobj->buttontext) {
              $output .= $this->start_attempt_button($viewobj->buttontext,
                      $viewobj->startattempturl, $viewobj->preflightcheckform,
                      $viewobj->popuprequired, $viewobj->popupoptions);
          }
  
          if ($viewobj->showbacktocourse) {
              $output .= $this->single_button($viewobj->backtocourseurl,
                      get_string('backtocourse', 'quiz'), 'get',
                      array('class' => 'continuebutton'));
          }
  
          return $output;
      }
code_tokens: public function view_page_buttons ( mod_quiz_view_object $ viewobj ) { global $ CFG ; $ output = '' ; if ( ! $ viewobj -> quizhasquestions ) { $ output .= $ this -> no_questions_message ( $ viewobj -> canedit , $ viewobj -> editurl ) ; } $ output .= $ this -> access_messages ( $ viewobj -> preventmessages ) ; if ( $ viewobj -> buttontext ) { $ output .= $ this -> start_attempt_button ( $ viewobj -> buttontext , $ viewobj -> startattempturl , $ viewobj -> preflightcheckform , $ viewobj -> popuprequired , $ viewobj -> popupoptions ) ; } if ( $ viewobj -> showbacktocourse ) { $ output .= $ this -> single_button ( $ viewobj -> backtocourseurl , get_string ( 'backtocourse' , 'quiz' ) , 'get' , array ( 'class' => 'continuebutton' ) ) ; } return $ output ; }
docstring: Work out, and render, whatever buttons, and surrounding info, should appear
  at the end of the review page.
  @param mod_quiz_view_object $viewobj the information required to display
  the view page.
  @return string HTML to output.
docstring_tokens: Work out and render whatever buttons and surrounding info should appear at the end of the review page .