Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
mod_quiz\output\links_to_other_attempts Class Reference
Inheritance diagram for mod_quiz\output\links_to_other_attempts:
renderable

Public Attributes

array $links = []
 The list of links.
 

Detailed Description

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Data Documentation

◆ $links

array mod_quiz\output\links_to_other_attempts::$links = []

The list of links.

string attempt number => one of three things:

  • null if this is the current attempt, and so should not be linked. (Just the number is output.)
  • moodle_url if this is a different attempt. (Output as a link to the URL with the number as link text.)
  • a renderable, in which case the results of rendering the renderable is output. (The third option is used by {
    See also
    quiz_attempt\links_to_other_redos()}.)

The documentation for this class was generated from the following file: