ImportResult
class ImportResult implements JsonSerializable (View source)
Properties
protected ErrorList | $errors | The list of import errros. |
|
protected ErrorList | $warnings | The list of import warnings. |
|
protected int|null | $lastDataRowIndex | The index of the last processed row (if any). |
|
protected int | $totalDataRowsProcessed | The total number of the data rows processed. |
|
protected int | $importSuccessCount | The total number successfully imported rows. |
|
protected array|null | $dataCollected | The data collected during the import process. |
Methods
Get the list of import warnings.
Count a row as processed.
Get the index of the last processed row (if any).
Get the total number of the data rows processed.
Set the total number successfully imported rows.
Increase the total number successfully imported rows.
Get the total number successfully imported rows.
Add an error message to the errors/warnings list.
{@inheritdoc}
Set the data collected during the import process.
Get the data collected during the import process.
Details
ErrorList
getErrors()
Get the list of import errros.
ErrorList
getWarnings()
Get the list of import warnings.
$this
countRowProcessed(int $rowIndex)
Count a row as processed.
int|null
getLastDataRowIndex()
Get the index of the last processed row (if any).
int
getTotalDataRowsProcessed()
Get the total number of the data rows processed.
$this
setImportSuccessCount(int $value)
Set the total number successfully imported rows.
$this
increaseImportSuccessCount(int $count = 1)
Increase the total number successfully imported rows.
int
getImportSuccessCount()
Get the total number successfully imported rows.
$this
addLineProblem(bool $isError, string $problem, int|null $rowIndex = null)
Add an error message to the errors/warnings list.
jsonSerialize()
{@inheritdoc}
$this
setDataCollected(array $value = null)
Set the data collected during the import process.
array|null
getDataCollected()
Get the data collected during the import process.