Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Class for exporting calendar footer view options data.

Copyright: 2017 Simey Lameze <simey@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 148 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

footer_options_exporter:: (6 methods):
  __construct()
  get_export_calendar_button()
  get_manage_subscriptions_button()
  get_link_params()
  get_other_values()
  define_other_properties()


Class: footer_options_exporter  - X-Ref

Class for exporting calendar footer view options data.

__construct(\calendar_information $calendar, $userid, $token)   X-Ref
Constructor for month_exporter.

param: \calendar_information $calendar The calendar being represented
param: int $userid The user id
param: string $token The user sha1 token.

get_export_calendar_button()   X-Ref
Get the export calendar button.

return: \single_button The export calendar button html.

get_manage_subscriptions_button()   X-Ref
Get manage subscription button.

return: string The manage subscription button html.

get_link_params()   X-Ref
Get the list of URL parameters for calendar links.

return: array

get_other_values(renderer_base $output)   X-Ref
Get the additional values to inject while exporting.

param: renderer_base $output The renderer.
return: array Keys are the property names, values are their values.

define_other_properties()   X-Ref
Return the list of additional properties.

return: array