Backend\Behaviors\ImportExportController\ActionImport
Overview
ActionImport contains logic for imports
Public Properties
public Model $importModel
public array $importColumns
importColumns configuration.
Protected Properties
protected Backend\Classes\WidgetBase $importUploadFormWidget
importUploadFormWidget reference to the widget used for uploading import file.
protected Backend\Classes\WidgetBase $importOptionsFormWidget
importOptionsFormWidget reference to the widget used for specifying import options.
Public Methods
public actionImport()
public actionImport(): void
actionImport handles the import action logic
public actionImportLoadColumnSampleForm()
public actionImportLoadColumnSampleForm(): void
public importGetModel()
public importGetModel(): void
public importIsColumnRequired()
public importIsColumnRequired($columnName): void
public importRender()
public importRender(): void
public prepareImportVars()
public prepareImportVars(): void
prepareImportVars for the view data.
Protected Methods
protected checkRequiredImportColumns()
protected checkRequiredImportColumns(): void
protected filterImportColumnMatches()
protected filterImportColumnMatches($matches): array
filterImportColumnMatches rejects any undeclared columns
protected getImportDbColumns()
protected getImportDbColumns(): void
protected getImportFileColumns()
protected getImportFileColumns(): void
protected getImportFilePath()
protected getImportFilePath(): void
protected getImportSourceIndexOffset()
protected getImportSourceIndexOffset(bool $firstRowTitles): int
getImportSourceIndexOffset to add to the reported row number in status messages
protected makeImportOptionsFormWidget()
protected makeImportOptionsFormWidget(): void
protected makeImportUploadFormWidget()
protected makeImportUploadFormWidget(): void