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 402 and 403]

(no description)

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

Defines 1 class

bulkedittools:: (5 methods):
  __construct()
  export_for_template()
  get_toolbar_actions()
  cm_control_items()
  section_control_items()


Class: bulkedittools  - X-Ref

Contains the bulk editor tools bar.

__construct(course_format $format)   X-Ref
Constructor.

param: course_format $format the course format

export_for_template(\renderer_base $output)   X-Ref
Export this data so it can be used as the context for a mustache template (core/inplace_editable).

param: renderer_base $output typically, the renderer that's calling this function
return: stdClass data context for a mustache template

get_toolbar_actions()   X-Ref
Get the toolbar actions.

return: array the array of buttons

cm_control_items()   X-Ref
Generate the bulk edit control items of a course module.

Format plugins can override the method to add or remove elements
from the toolbar.

return: array of edit control items

section_control_items()   X-Ref
Generate the bulk edit control items of a section.

Format plugins can override the method to add or remove elements
from the toolbar.

return: array of edit control items