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]

Output the action buttons for this activity.

Copyright: 2021 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 113 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

edit_action_buttons:: (3 methods):
  __construct()
  set_currentpage()
  export_for_template()


Class: edit_action_buttons  - X-Ref

Output the action buttons for this activity.

__construct(\lesson $lesson, ?int $currentpage = null)   X-Ref
Constructor for this object.

param: \lesson $lesson The lesson object.
param: int|null $currentpage The current lesson page that is being viewed

set_currentpage(?int $page)   X-Ref
Sets the current page being viewed.

param: int|null $page

export_for_template(\renderer_base $output)   X-Ref
Data for use with a template.

return: array Said data.
param: \renderer_base $output Renderer information.