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.

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.