Milkyway\SS\GridFieldUtils\FormatSwitcher
Synopsis
class FormatSwitcher
implements
GridField_HTMLProvider,GridField_DataManipulator,GridField_ActionProvider
{
- // members
- protected string $default = 'unformatted';
- protected array $formats = ;
- protected $targetFragment;
- protected $formatCallback;
- public string $urlSegment = 'format';
- public array $unformatted = ;
- // methods
- public void __construct()
- public string getDefault()
- public FormatSwitcher setDefault()
- public array getFormats()
- public FormatSwitcher setFormats()
- public callable|null getFormatCallback()
- public FormatSwitcher setFormatCallback()
- public void getHTMLFragments()
- protected GridState_Data getFormatState()
- public SS_List getManipulatedData()
- public void getActions()
- public void handleAction()
- protected void stockFormats()
Hierarchy
Implements
- GridField_HTMLProvider
- GridField_DataManipulator
- GridField_ActionProvider
Members
protected
- $default
- $formatCallback
- $formats
- $targetFragment
public
- $unformatted
- $urlSegment
Methods
protected
- getFormatState() — Retrieves/Sets up the state object used to store and retrieve information about the current paging details of this GridField
- stockFormats()
public
- __construct()
- getActions()
- getDefault()
- getFormatCallback()
- getFormats()
- getHTMLFragments()
- getManipulatedData() — Manipulate the list according to chosen format
- handleAction()
- setDefault()
- setFormatCallback() — Sets a custom handler for when a format action is performed
- setFormats()