Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 402] [Versions 400 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.

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

export_for_template(renderer_base $output)   X-Ref
No description