original_string: public function check_page_access($page) {
          global $DB;
  
          if ($this->get_currentpage() != $page) {
              if ($this->get_navigation_method() == QUIZ_NAVMETHOD_SEQ && $this->get_currentpage() > $page) {
                  return false;
              }
          }
          return true;
      }
code: public function check_page_access($page) {
          global $DB;
  
          if ($this->get_currentpage() != $page) {
              if ($this->get_navigation_method() == QUIZ_NAVMETHOD_SEQ && $this->get_currentpage() > $page) {
                  return false;
              }
          }
          return true;
      }
code_tokens: public function check_page_access ( $ page ) { global $ DB ; if ( $ this -> get_currentpage ( ) != $ page ) { if ( $ this -> get_navigation_method ( ) == QUIZ_NAVMETHOD_SEQ && $ this -> get_currentpage ( ) > $ page ) { return false ; } } return true ; }
docstring: Check a page access to see if is an out of sequence access.
  
  @param  int $page page number
  @return boolean false is is an out of sequence access, true otherwise.
  @since Moodle 3.1
docstring_tokens: Check a page access to see if is an out of sequence access .