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.

Activity Chooser footer data class.

Copyright: 2020 Mathew May
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 86 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

activity_chooser_footer:: (4 methods):
  __construct()
  get_footer_js_file()
  get_footer_template()
  get_carousel_template()


Class: activity_chooser_footer  - X-Ref

A class to represent the Activity Chooser footer data.

__construct(string $footerjspath, string $footertemplate, ?string $carouseltemplate = '')   X-Ref
Constructor method.

param: string $footerjspath JS file to dynamically import later.
param: string $footertemplate Footer template that has been rendered.
param: string|null $carouseltemplate Carousel template that may have been rendered.

get_footer_js_file()   X-Ref
Get the footer JS file path for this plugin.

return: string The JS file to call functions from.

get_footer_template()   X-Ref
Get the footer rendered template for this plugin.

return: string The template that has been rendered for the chooser footer.

get_carousel_template()   X-Ref
Get the carousel rendered template for this plugin.

return: string The template that has been rendered for the chooser carousel.