Schrattenholz\OrderProfileFeature\BackEnd\GridField_ExportOrderButton
Adds an "Print" button to the bottom or top of a GridField.
Synopsis
class GridField_ExportOrderButton
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_URLHandler
{
- // members
- protected $printColumns;
- protected boolean $printHasHeader = true;
- protected $targetFragment;
- // methods
- public void __construct()
- public array getHTMLFragments()
- public array getActions()
- public DBHTMLText handleAction()
- public array getURLHandlers()
- public DBHTMLText handleOrderExport()
- public void array_to_csv_download()
- protected array getPrintColumnsForGridField()
- public array getTitle()
- public ArrayData generatePrintData()
- public array getPrintColumns()
- public $this setPrintColumns()
- public boolean getPrintHasHeader()
- public $this setPrintHasHeader()
Hierarchy
Uses
- SilverStripe\Core\Extensible
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_URLHandler
Members
protected
- $printColumns — array
- $printHasHeader — boolean
- $targetFragment
—
string
Fragment to write the button to.
Methods
protected
- getPrintColumnsForGridField() — Return the columns to print
public
- __construct()
- array_to_csv_download()
- generatePrintData() — Export core.
- getActions() — Print is an action button.
- getHTMLFragments() — Place the print button in a <p> tag below the field
- getPrintColumns()
- getPrintHasHeader()
- getTitle() — Return the title of the printed page
- getURLHandlers() — Print is accessible via the url
- handleAction() — Handle the print action.
- handleOrderExport() — Handle the print, for both the action button and the URL
- setPrintColumns()
- setPrintHasHeader()