Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class

course_tools_page_header:: (2 methods):
  __construct()
  export_for_template()


Class: course_tools_page_header  - X-Ref

Course tools page header renderable, containing the data for the page zero state and 'add tool' button.

__construct(protected int $courseid, protected int $toolcount, protected bool $canadd)   X-Ref
Constructor.

param: int $courseid the course id.
param: int $toolcount the number of tools available in the course.
param: bool $canadd whether the user can add tools to the course or not.

export_for_template(renderer_base $output)   X-Ref
Export the header's data for template use.

param: renderer_base $output
return: object the data.