Sunnysideup\Ecommerce\Forms\Gridfield\GridFieldPrintAllInvoicesButton
Adds an "Export list" button to the bottom of a {@link GridField}.
Synopsis
class GridFieldPrintAllInvoicesButton
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_URLHandler
{
- // members
- protected $targetFragment;
- private static integer $invoice_bulk_printing_limit = 30;
- // methods
- public void __construct()
- public void getHTMLFragments()
- public void getActions()
- public void handleAction()
- public void getURLHandlers()
- public void handlePrint()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_URLHandler
Members
private
- $invoice_bulk_printing_limit — int
protected
- $targetFragment
—
string
HTML Fragment to render the field.
Methods
public
- __construct()
- getActions() — export is an action button.
- getHTMLFragments() — Place the export button in a <p> tag below the field.
- getURLHandlers() — it is also a URL.
- handleAction()
- handlePrint() — Handle the print, for both the action button and the URL.