Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

(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