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.

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

(no description)

File Size: 195 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

param: renderer_base $output
return: array

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

return: form_filter