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.

(no description)

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

Defines 1 class

manage_badge_action_bar:: (5 methods):
  __construct()
  get_template()
  export_for_template()
  get_badge_administration_mapping_construct()
  generate_badge_navigation()


Class: manage_badge_action_bar  - X-Ref

Class manage_badge_action_bar - Display the action bar

__construct(badge $badge, moodle_page $page)   X-Ref
manage_badge_action_bar constructor

param: badge $badge The badge we are viewing
param: moodle_page $page The page object

get_template()   X-Ref
The template that this tertiary nav should use.

return: string

export_for_template(renderer_base $output)   X-Ref
Export the action bar

param: renderer_base $output
return: array

get_badge_administration_mapping_construct()   X-Ref
Returns a multi dimensional array of the links that should be displayed when creating a badge.
The keys of the array feed into the text shown to the user and content of each element contain the following:
- url               URL for the option
- additionalparams  Additional params to feed into the url
- capability        The capabilities to check that governs visibility

return: array

generate_badge_navigation()   X-Ref
Generate the options to be displayed when editing a badge. This feeds into a URL select which will be displayed
in the tertiary navigation.

return: array