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 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

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

Defines 1 class


Class: action_bar  - X-Ref

Class responsible for generating the action bar elements in the database module pages.

__construct(int $id, moodle_url $pageurl)   X-Ref
The class constructor.

param: int $id The database module id.
param: moodle_url $pageurl The URL of the current page.

get_fields_action_bar(bool $hasfieldselect = false, bool $hassaveaspreset = false,bool $hasexportpreset = false)   X-Ref
Generate the output for the action bar in the field page.

return: string The HTML code for the action bar.
param: bool $hasfieldselect Whether the field selector element should be rendered.
param: bool $hassaveaspreset Whether the save as preset button element should be rendered.
param: bool $hasexportpreset Whether the export as preset button element should be rendered.

get_view_action_bar(bool $hasentries)   X-Ref
Generate the output for the action selector in the view page.

return: string The HTML code for the action selector.
param: bool $hasentries Whether entries exist.

get_templates_action_bar()   X-Ref
Generate the output for the action selector in the templates page.

return: string The HTML code for the action selector.

get_presets_action_bar()   X-Ref
Generate the output for the action selector in the presets page.

return: string The HTML code for the action selector.