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.

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

(no description)

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

Defines 1 class

custom_report_exporter:: (6 methods):
  __construct()
  define_class()
  define_related()
  define_other_properties()
  get_other_values()
  generate_filters_form()


Class: custom_report_exporter  - X-Ref

Custom report exporter class

__construct(persistent $persistent, array $related = [], bool $editmode = true, string $download = '')   X-Ref
report_exporter constructor.

param: persistent $persistent
param: array $related
param: bool $editmode
param: string $download

define_class()   X-Ref
Return the name of the class we are exporting

return: string

define_related()   X-Ref
Return a list of objects that are related to the persistent

return: array

define_other_properties()   X-Ref
Return a list of additional properties used only for display

return: array

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

return: array
param: renderer_base $output

generate_filters_form()   X-Ref
Generate filters form for the report

return: form_filter