abstract class Importer (View source)

Properties

protected ImportColumn[] $cachedColumns
protected array<string,mixed> $originalData
protected array<string,mixed> $data
protected Model|null $record
static protected string|null $model

Methods

__construct(Import $import, array $columnMap, array $options)

No description

void
__invoke(array $data)

No description

void
remapData()

No description

void
castData()

No description

Model|null
resolveRecord()

No description

void
validateData()

No description

array
getValidationRules()

No description

array
getValidationMessages()

No description

array
getValidationAttributes()

No description

void
fillRecord()

No description

void
saveRecord()

No description

static array
getColumns()

No description

static array
getOptionsFormComponents()

No description

static string
getModel()

No description

static string
getCompletedNotificationBody(Import $import)

No description

static string
getCompletedNotificationTitle(Import $import)

No description

array
getJobMiddleware()

No description

CarbonInterface|null
getJobRetryUntil()

No description

array
getJobTags()

No description

string|null
getJobQueue()

No description

string|null
getJobConnection()

No description

string|null
getJobBatchName()

No description

array
getCachedColumns()

No description

Model|null
getRecord()

No description

array
getOriginalData()

No description

array
getData()

No description

array
getOptions()

No description

void
callHook(string $hook)

No description

getImport()

No description

Details

__construct(Import $import, array $columnMap, array $options)

No description

Parameters

Import $import
array $columnMap
array $options

void __invoke(array $data)

No description

Parameters

array $data

Return Value

void

void remapData()

No description

Return Value

void

void checkColumnMappingRequirementsForNewRecords()

No description

Return Value

void

Exceptions

ValidationException

void castData()

No description

Return Value

void

Model|null resolveRecord()

No description

Return Value

Model|null

void validateData()

No description

Return Value

void

Exceptions

ValidationException

array getValidationRules()

No description

Return Value

array

array getValidationMessages()

No description

Return Value

array

array getValidationAttributes()

No description

Return Value

array

void fillRecord()

No description

Return Value

void

void saveRecord()

No description

Return Value

void

abstract static array getColumns()

No description

Return Value

array

static array getOptionsFormComponents()

No description

Return Value

array

static string getModel()

No description

Return Value

string

abstract static string getCompletedNotificationBody(Import $import)

No description

Parameters

Import $import

Return Value

string

static string getCompletedNotificationTitle(Import $import)

No description

Parameters

Import $import

Return Value

string

array getJobMiddleware()

No description

Return Value

array

CarbonInterface|null getJobRetryUntil()

No description

Return Value

CarbonInterface|null

array getJobTags()

No description

Return Value

array

string|null getJobQueue()

No description

Return Value

string|null

string|null getJobConnection()

No description

Return Value

string|null

string|null getJobBatchName()

No description

Return Value

string|null

array getCachedColumns()

No description

Return Value

array

Model|null getRecord()

No description

Return Value

Model|null

array getOriginalData()

No description

Return Value

array

array getData()

No description

Return Value

array

array getOptions()

No description

Return Value

array

protected void callHook(string $hook)

No description

Parameters

string $hook

Return Value

void

Import getImport()

No description

Return Value

Import