Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: