Quiz: How to get the total number of pages in a quiz?

Quiz: How to get the total number of pages in a quiz?

by Zarah Khan -
Number of replies: 1
Is there a way to get the total number of pages in a quiz, preferably in the attempt.php file?
Average of ratings: -
In reply to Zarah Khan

Re: Quiz: How to get the total number of pages in a quiz?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

$attemptobj->get_num_pages()

Average of ratings: Useful (1)