SilverStripe\SecurityReport\Forms\GridFieldExportReportButton
An extension to GridFieldExportButton to support downloading a custom Report as a CSV file
This code was adapted from a solution posted in SilverStripe.org forums:
http://www.silverstripe.org/customising-the-cms/show/38202
- Author: Michael Armstrong <http://www.silverstripe.org/ForumMemberProfile/show/30887>
Synopsis
class GridFieldExportReportButton
extends GridFieldExportButton
{
- // methods
- public array generateExportFileData()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldExportButton
Tasks
Line | Task |
---|---|
63 | should GridFieldComponents change behaviour based on whether others are available in the config? |
Methods
public
- generateExportFileData() — Generate export fields for CSV.