CoolCMS API

ImportValidationSummary
in package

FinalYes

Dry-run result: how many items would be created, updated and skipped, and how many hard errors (rows are not written) and soft errors (rows are written incomplete and flagged `importIncomplete`) were found.

An item is a variant (ProductSet), not a product card; this is also what ProductImport::$totalItems counts.

Mutable accumulator filled by ImportValidator in a single pass over the file.

Table of Contents

Properties

$createCount  : int
$errorCount  : int
Log rows of level `error` (one item can produce several).
$errorItemCount  : int
Items with at least one hard error; they are not written at all.
$incompleteItemCount  : int
Items with at least one soft error; they are written incomplete and flagged.
$infoCount  : int
$productCount  : int
$skipCount  : int
$totalItems  : int
$updateCount  : int
$warningCount  : int
Log rows of level `warning`.

Methods

toArray()  : array<string, int>

Properties

$errorItemCount

Items with at least one hard error; they are not written at all.

public int $errorItemCount = 0

$incompleteItemCount

Items with at least one soft error; they are written incomplete and flagged.

public int $incompleteItemCount = 0

Methods

toArray()

public toArray() : array<string, int>
Return values
array<string, int> —

shape for the report template and the bridge JSON response

On this page

Search results