original_string: public function get_edit_page_warnings() {
          $warnings = array();
  
          if (quiz_has_attempts($this->quizobj->get_quizid())) {
              $reviewlink = quiz_attempt_summary_link_to_reports($this->quizobj->get_quiz(),
                      $this->quizobj->get_cm(), $this->quizobj->get_context());
              $warnings[] = get_string('cannoteditafterattempts', 'quiz', $reviewlink);
          }
  
          return $warnings;
      }
code: public function get_edit_page_warnings() {
          $warnings = array();
  
          if (quiz_has_attempts($this->quizobj->get_quizid())) {
              $reviewlink = quiz_attempt_summary_link_to_reports($this->quizobj->get_quiz(),
                      $this->quizobj->get_cm(), $this->quizobj->get_context());
              $warnings[] = get_string('cannoteditafterattempts', 'quiz', $reviewlink);
          }
  
          return $warnings;
      }
code_tokens: public function get_edit_page_warnings ( ) { $ warnings = array ( ) ; if ( quiz_has_attempts ( $ this -> quizobj -> get_quizid ( ) ) ) { $ reviewlink = quiz_attempt_summary_link_to_reports ( $ this -> quizobj -> get_quiz ( ) , $ this -> quizobj -> get_cm ( ) , $ this -> quizobj -> get_context ( ) ) ; $ warnings [ ] = get_string ( 'cannoteditafterattempts' , 'quiz' , $ reviewlink ) ; } return $ warnings ; }
docstring: Get any warnings to show at the top of the edit page.
  @return string[] array of strings.
docstring_tokens: Get any warnings to show at the top of the edit page .