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]

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.

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