CoolCMS API

ImportProductVerdict
in package

FinalYes

Validator verdict for one `<product>` card and its variants; see {@see ImportItemVerdict}.

Table of Contents

Properties

$cardBlocked  : bool
$cardIncomplete  : bool
$items  : array<string|int, mixed>
$line  : int
$productId  : int|null

Methods

__construct()  : mixed
hasWritableItem()  : bool
At least one item is to be actually written (create or update, not blocked).

Properties

Methods

__construct()

public __construct(int $line, bool $cardBlocked, bool $cardIncomplete, int|null $productId, array<int, ImportItemVerdict> $items) : mixed
Parameters
$line : int
$cardBlocked : bool
$cardIncomplete : bool
$productId : int|null

target card in the DB (matching by variant codes or explicit id); null = it will be created

$items : array<int, ImportItemVerdict>

hasWritableItem()

At least one item is to be actually written (create or update, not blocked).

public hasWritableItem() : bool
Return values
bool
On this page

Search results