original_string: public function view_page_guest($course, $quiz, $cm, $context, $messages) {
          $output = '';
          $output .= $this->view_information($quiz, $cm, $context, $messages);
          $guestno = html_writer::tag('p', get_string('guestsno', 'quiz'));
          $liketologin = html_writer::tag('p', get_string('liketologin'));
          $referer = get_local_referer(false);
          $output .= $this->confirm($guestno."\n\n".$liketologin."\n", get_login_url(), $referer);
          return $output;
      }
code: public function view_page_guest($course, $quiz, $cm, $context, $messages) {
          $output = '';
          $output .= $this->view_information($quiz, $cm, $context, $messages);
          $guestno = html_writer::tag('p', get_string('guestsno', 'quiz'));
          $liketologin = html_writer::tag('p', get_string('liketologin'));
          $referer = get_local_referer(false);
          $output .= $this->confirm($guestno."\n\n".$liketologin."\n", get_login_url(), $referer);
          return $output;
      }
code_tokens: public function view_page_guest ( $ course , $ quiz , $ cm , $ context , $ messages ) { $ output = '' ; $ output .= $ this -> view_information ( $ quiz , $ cm , $ context , $ messages ) ; $ guestno = html_writer :: tag ( 'p' , get_string ( 'guestsno' , 'quiz' ) ) ; $ liketologin = html_writer :: tag ( 'p' , get_string ( 'liketologin' ) ) ; $ referer = get_local_referer ( false ) ; $ output .= $ this -> confirm ( $ guestno . "\n\n" . $ liketologin . "\n" , get_login_url ( ) , $ referer ) ; return $ output ; }
docstring: Outputs an error message for any guests accessing the quiz
  
  @param int $course The course ID
  @param array $quiz Array contingin quiz data
  @param int $cm Course Module ID
  @param int $context The page contect ID
  @param array $messages Array containing any messages
docstring_tokens: Outputs an error message for any guests accessing the quiz