original_string: public function no_questions_message($canedit, $editurl) {
          $output = '';
          $output .= $this->notification(get_string('noquestions', 'quiz'));
          if ($canedit) {
              $output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
          }
  
          return $output;
      }
code: public function no_questions_message($canedit, $editurl) {
          $output = '';
          $output .= $this->notification(get_string('noquestions', 'quiz'));
          if ($canedit) {
              $output .= $this->single_button($editurl, get_string('editquiz', 'quiz'), 'get');
          }
  
          return $output;
      }
code_tokens: public function no_questions_message ( $ canedit , $ editurl ) { $ output = '' ; $ output .= $ this -> notification ( get_string ( 'noquestions' , 'quiz' ) ) ; if ( $ canedit ) { $ output .= $ this -> single_button ( $ editurl , get_string ( 'editquiz' , 'quiz' ) , 'get' ) ; } return $ output ; }
docstring: Generate a message saying that this quiz has no questions, with a button to
  go to the edit page, if the user has the right capability.
  @param object $quiz the quiz settings.
  @param object $cm the course_module object.
  @param object $context the quiz context.
  @return string HTML to output.
docstring_tokens: Generate a message saying that this quiz has no questions with a button to go to the edit page if the user has the right capability .