trait CanExportRecords (View source)

Properties

protected Exporter> $exporter
protected string|null $job
protected int|Closure $chunkSize
protected int|Closure|null $maxRows
protected string|Closure|null $csvDelimiter
protected array<string,mixed> $options
protected string|Closure|null $fileDisk
protected string|Closure|null $fileName
protected ExportFormat[] $formats
protected Closure|null $modifyQueryUsing
protected bool|Closure $hasColumnMapping

Methods

void
setUp()

No description

static string|null
getDefaultName()

No description

exporter(string $exporter)

No description

job(string|null $job)

No description

chunkSize(int|Closure $size)

No description

maxRows(int|Closure|null $rows)

No description

csvDelimiter(string|Closure|null $delimiter)

No description

string
getExporter()

No description

string
getJob()

No description

int
getChunkSize()

No description

int|null
getMaxRows()

No description

options(array|Closure $options)

No description

array
getOptions()

No description

fileDisk(string|Closure|null $disk)

No description

string|null
getFileDisk()

No description

fileName(string|Closure|null $name)

No description

string|null
getFileName(Export $export)

No description

formats(array|Closure|null $formats)

No description

array|null
getFormats()

No description

modifyQueryUsing(Closure|null $callback)

No description

columnMapping(bool|Closure $condition = true)

No description

bool
hasColumnMapping()

No description

Details

protected void setUp()

No description

Return Value

void

static string|null getDefaultName()

No description

Return Value

string|null

CanExportRecords exporter(string $exporter)

No description

Parameters

string $exporter

Return Value

CanExportRecords

CanExportRecords job(string|null $job)

No description

Parameters

string|null $job

Return Value

CanExportRecords

CanExportRecords chunkSize(int|Closure $size)

No description

Parameters

int|Closure $size

Return Value

CanExportRecords

CanExportRecords maxRows(int|Closure|null $rows)

No description

Parameters

int|Closure|null $rows

Return Value

CanExportRecords

CanExportRecords csvDelimiter(string|Closure|null $delimiter)

No description

Parameters

string|Closure|null $delimiter

Return Value

CanExportRecords

string getExporter()

No description

Return Value

string

string getJob()

No description

Return Value

string

int getChunkSize()

No description

Return Value

int

int|null getMaxRows()

No description

Return Value

int|null

CanExportRecords options(array|Closure $options)

No description

Parameters

array|Closure $options

Return Value

CanExportRecords

array getOptions()

No description

Return Value

array

CanExportRecords fileDisk(string|Closure|null $disk)

No description

Parameters

string|Closure|null $disk

Return Value

CanExportRecords

string|null getFileDisk()

No description

Return Value

string|null

CanExportRecords fileName(string|Closure|null $name)

No description

Parameters

string|Closure|null $name

Return Value

CanExportRecords

string|null getFileName(Export $export)

No description

Parameters

Export $export

Return Value

string|null

CanExportRecords formats(array|Closure|null $formats)

No description

Parameters

array|Closure|null $formats

Return Value

CanExportRecords

array|null getFormats()

No description

Return Value

array|null

| null

CanExportRecords modifyQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

CanExportRecords

CanExportRecords columnMapping(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanExportRecords

bool hasColumnMapping()

No description

Return Value

bool