ReportsProvider
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Plugin\
ReportsProvider
Get reports that are defined by plugins.
Methods
The class defines the following methods:
factory()— Get an instance of a specific report belonging to the given module and having the given action.getAllReports()— Returns a list of all available reports.getAllReportClasses()— Returns class names of all Report metadata classes.
factory()
Get an instance of a specific report belonging to the given module and having the given action.
Signature
It accepts the following parameter(s):
$module(string) —$action(string) —
Returns:
null|Report—
getAllReports()
Returns a list of all available reports. Even not enabled reports will be returned. They will be already sorted depending on the order and category of the report.
Signature
- It returns a
Report[]value.
getAllReportClasses()
Returns class names of all Report metadata classes.
Signature
- It returns a
string[]value.