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.

(no description)

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

Defines 1 class

system_report_factory:: (2 methods):
  create()
  get_report_persistent()


Class: system_report_factory  - X-Ref

Factory class for creating system report instances

create(string $source, context $context, string $component = '', string $area = '',int $itemid = 0, array $parameters = [])   X-Ref
Create and return instance of given system report source

param: string $source Class path of system report definition
param: context $context
param: string $component
param: string $area
param: int $itemid
param: array $parameters Simple key/value pairs, accessed inside reports using $this->get_parameter()
return: system_report

get_report_persistent(string $source, context $context, string $component = '', string $area = '',int $itemid = 0)   X-Ref
Given a report source, with accompanying context information, return a persistent report instance

param: string $source
param: context $context
param: string $component
param: string $area
param: int $itemid
return: report