\GridFieldApplyToMultipleRows
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class GridFieldApplyToMultipleRows
implements
GridField_HTMLProvider,GridField_ActionProvider,GridField_URLHandler
{
- // members
- protected callable $rowHandler;
- protected $targetFragment;
- protected $buttonText;
- protected $actionName;
- protected $buttonConfig;
- // methods
- public void __construct()
- public array getHTMLFragments()
- public Array getActions()
- public array handleAction()
- public void getURLHandlers()
- public array handleIt()
- protected void onBeforeList()
- protected void onAfterList()
- protected void onEmptyList()
Hierarchy
Implements
- GridField_HTMLProvider
- GridField_ActionProvider
- GridField_URLHandler
Members
protected
- $actionName — string
- $rowHandler — callable
- $targetFragment — string
Methods
protected
- onAfterList() — This allows subclasses to have a hook at the end of running through all the items. Response will usually be an array on the way in but it can be changed to whatever and will be returned as is.
- onBeforeList() — Hook for subclasses
- onEmptyList()
public
- __construct()
- getActions() — Return a list of the actions handled by this action provider.
- getHTMLFragments() — Returns a map where the keys are fragment names and the values are pieces of HTML to add to these fragments.
- getURLHandlers() — Return URLs to be handled by this grid field, in an array the same form as $url_handlers.
- handleAction() — Handle an action on the given {@link GridField}.
- handleIt()