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.

Differences Between: [Versions 401 and 402] [Versions 401 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.

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