Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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.