GlassDataImport
in package
implements
GlassDataImportContract
Interfaces, Classes, Traits and Enums
Table of Contents
- $currentRow : FixedWidthRow
- $fixedWidthMapping : array<string|int, mixed>
- $id : string
- $job : string
- $output : OutputStyle|null
- $rows : Collection
- $rowsRead : int
- $stream : mixed
- $totalRows : int
- __construct() : mixed
- __sleep() : array<string|int, string>
- getConsoleOutput() : OutputStyle|null
- getRows() : Collection
- import() : void
- onRow() : void
- setNoOutput() : $this
- withOutput() : $this
- dispatch() : void
- flush() : void
- getChunkIndex() : int
- getCurrentRow() : FixedWidthRow
- getRowNumber() : int
- getTotalRows() : int
- read() : void
- shouldFlush() : bool
Properties
$currentRow
protected
FixedWidthRow
$currentRow
$fixedWidthMapping
protected
array<string|int, mixed>
$fixedWidthMapping
$id
protected
string
$id
$job
protected
string
$job
$output
protected
OutputStyle|null
$output
= NULL
$rows
protected
Collection
$rows
$rowsRead
protected
int
$rowsRead
= 0
$stream
protected
mixed
$stream
The file stream resource
$totalRows
protected
int
$totalRows
= 0
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__sleep()
public
__sleep() : array<string|int, string>
Return values
array<string|int, string> —getConsoleOutput()
public
getConsoleOutput() : OutputStyle|null
Return values
OutputStyle|null —getRows()
public
getRows() : Collection
Return values
Collection —import()
public
import(mixed $stream) : void
Parameters
- $stream : mixed
Return values
void —onRow()
public
onRow(FixedWidthRow $row) : void
Parameters
- $row : FixedWidthRow
Return values
void —setNoOutput()
public
setNoOutput() : $this
Return values
$this —withOutput()
public
withOutput(OutputStyle $output) : $this
Parameters
- $output : OutputStyle
Return values
$this —dispatch()
protected
dispatch(ImportBatch $importBatch) : void
Parameters
- $importBatch : ImportBatch
Return values
void —flush()
protected
flush() : void
Return values
void —getChunkIndex()
protected
getChunkIndex() : int
Return values
int —getCurrentRow()
protected
getCurrentRow() : FixedWidthRow
Return values
FixedWidthRow —getRowNumber()
protected
getRowNumber() : int
Return values
int —getTotalRows()
protected
getTotalRows() : int
Return values
int —read()
protected
read() : void
Return values
void —shouldFlush()
protected
shouldFlush() : bool