\GridFieldPurgeYearCalendarButton
Adds a Purge button to the top of a {@link GridField}.
Synopsis
class GridFieldPurgeYearCalendarButton
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_URLHandler
{
- // members
- protected $targetFragment;
- // methods
- public void __construct()
- public array getHTMLFragments()
- public array getActions()
- public SS_HTTPResponse handleAction()
- public array getURLHandlers()
Hierarchy
Implements
- GridField_HTMLProvider
- GridField_ActionProvider
- GridField_URLHandler
Members
protected
- $targetFragment
—
string
Fragment to write the button to
Methods
public
- __construct() — Class constructor
- 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() — Handle the action