CanImportRecords
trait CanImportRecords (View source)
Properties
protected Importer> | $importer | ||
protected string|null | $job | ||
protected int|Closure | $chunkSize | ||
protected int|Closure|null | $maxRows | ||
protected int|Closure|null | $headerOffset | ||
protected string|Closure|null | $csvDelimiter | ||
protected array<string,mixed> | $options | ||
protected array | $fileValidationRules |
Methods
void
setUp()
No description
resource
getUploadedFileStream(TemporaryUploadedFile $file)
No description
string|null
detectCsvEncoding(mixed $resource)
No description
static string|null
getDefaultName()
No description
importer(string $importer)
No description
job(string|null $job)
No description
chunkSize(int|Closure $size)
No description
maxRows(int|Closure|null $rows)
No description
headerOffset(int|Closure|null $offset)
No description
csvDelimiter(string|Closure|null $delimiter)
No description
string
getImporter()
No description
string
getJob()
No description
int
getChunkSize()
No description
int|null
getMaxRows()
No description
int|null
getHeaderOffset()
No description
string|null
getCsvDelimiter(Reader|null $reader = null)
No description
string|null
guessCsvDelimiter(Reader|null $reader = null)
No description
options(array|Closure $options)
No description
array
getOptions()
No description
fileRules(string|array|Closure $rules)
No description
array
getFileValidationRules()
No description
Details
protected void
setUp()
No description
resource
getUploadedFileStream(TemporaryUploadedFile $file)
No description
protected string|null
detectCsvEncoding(mixed $resource)
No description
static string|null
getDefaultName()
No description
CanImportRecords
importer(string $importer)
No description
CanImportRecords
job(string|null $job)
No description
CanImportRecords
chunkSize(int|Closure $size)
No description
CanImportRecords
maxRows(int|Closure|null $rows)
No description
CanImportRecords
headerOffset(int|Closure|null $offset)
No description
CanImportRecords
csvDelimiter(string|Closure|null $delimiter)
No description
string
getImporter()
No description
string
getJob()
No description
int
getChunkSize()
No description
int|null
getMaxRows()
No description
int|null
getHeaderOffset()
No description
string|null
getCsvDelimiter(Reader|null $reader = null)
No description
protected string|null
guessCsvDelimiter(Reader|null $reader = null)
No description
CanImportRecords
options(array|Closure $options)
No description
array
getOptions()
No description
CanImportRecords
fileRules(string|array|Closure $rules)
No description
array
getFileValidationRules()
No description