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;
    }
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;
    }
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 ; }
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
Check a page access to see if is an out of sequence access .