internetrix / grouped-reports
Interface extensions for grouping reports and exporting.
dev-master
2019-07-08 00:30 UTC
Requires
- php: >=5.6
- silverstripe/vendor-plugin: ^1.0
This package is not auto-updated.
Last update: 2025-01-29 14:34:01 UTC
README
This module provides a simple tree interface for reports. It groups core reports together, and a group for SilverShop. To add your own grouped report, create a report extending from the GroupedReport class. Then include a function called "group" that returns a string matching the name of your group.
class MyReport extends GroupedReport
{
function group()
{
return "Reports about the thing";
}
Also included are custom Print and Export buttons. They overcome the pagination limitations of the core buttons and they do a better job of formatting output.
The export button can also accept a custom filename using ->setCustomFileName('my_file')
and it appends a timestamp and the .csv extension.