\GridFieldImporter_Request
Synopsis
class GridFieldImporter_Request
extends RequestHandler
{
- // members
- protected GridField $gridField;
- protected GridFieldImporter $component;
- protected string $urlSegment = 'importer';
- protected RequestHandler $requestHandler;
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public void __construct()
- public UploadField getUploadField()
- public string upload()
- public string preview()
- public Form MapperForm()
- protected array getMappableColumns()
- public void import()
- public BulkLoader_Result importFile()
- public void fileexists()
- public string Link()
- protected Controller getToplevelController()
- protected void cacheMapping()
- protected void getCachedMapping()
- protected void cacheKey()
- public string getBackURL()
Hierarchy
Extends
- SilverStripe\Control\RequestHandler
Tasks
Line | Task |
---|---|
118 | validate file? |
Members
private
- $allowed_actions
—
array
RequestHandler allowed actions - $url_handlers
—
array
RequestHandler url => action map
protected
- $component
—
GridFieldImporter
The parent GridFieldImporter - $gridField
—
GridField
Gridfield instance - $requestHandler
—
SilverStripe\Control\RequestHandler
Parent handler to link up to - $urlSegment
—
string
URLSegment for this request handler
Methods
protected
- cacheKey() — Generate a cache key unique to this gridfield
- cacheMapping() — Store the user defined mapping for future use.
- getCachedMapping() — Look for a previously stored user defined mapping.
- getMappableColumns() — Get all columns that can be mapped to in BulkLoader
- getToplevelController()
public
- __construct() — Handler's constructor
- Link()
- MapperForm() — The import form for creating mapping, and choosing options.
- fileexists() — Pass fileexists request to UploadField
- getBackURL() — Get's the previous URL that lead up to the current request.
- getUploadField() — Return the original component's UploadField
- import() — Import the current file
- importFile() — Do the import using the configured importer.
- preview() — Action for getting preview interface.
- upload() — Upload the given file, and import or start preview.