Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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