\MockDataGenerator
Defines the component for {@link GridField} that allows for populating the record set with mock records.
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class MockDataGenerator
implements
GridField_HTMLProvider,GridField_DataManipulator,GridField_ActionProvider
{
- // methods
- public array getHTMLFragments()
- public SS_List getManipulatedData()
- public Array getActions()
- public void handleAction()
Hierarchy
Implements
- GridField_HTMLProvider
- GridField_DataManipulator
- GridField_ActionProvider
Methods
public
- getActions() — Return a list of the actions handled by this action provider.
- getHTMLFragments() — Adds the HTML to the GridField that includes options for the mock data as well as the action button
- getManipulatedData() — Adds the records to the database and returns a new {@link DataList}
- handleAction() — Handle an action on the given {@link GridField}.