Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 111 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

overrides_actions:: (3 methods):
  __construct()
  create_add_button()
  export_for_template()


Class: overrides_actions  - X-Ref

Render overrides action in the quiz secondary navigation

The user/group overrides are now handled in the secondary navigation.
This class provides the data for the templates to handle the data for
overrides tab.

__construct(int $cmid, string $mode, bool $canedit, bool $addenabled)   X-Ref
overrides_action constructor.

param: int $cmid The course module id.
param: string $mode The mode passed for the overrides url.
param: bool $canedit Does the user have capabilities to list overrides.
param: bool $addenabled Whether the add button should be enabled or disabled.

create_add_button(\renderer_base $output)   X-Ref
Create the add override button.

param: \renderer_base $output an instance of the quiz renderer.
return: \single_button the button, ready to reander.

export_for_template(renderer_base $output)   X-Ref
No description