CoolCMS API

ImportCollectionDto
in package

FinalYes

Wrapper of a collection: categories, tags, parameters, images, accessories.

$mode is null when the wrapper tag has no collectionMode attribute; the default of the job settings then applies. The parser does not know the job settings (it is format-independent), so the validator or executor decides through resolveMode().

Tags
template

Table of Contents

Properties

$items  : array<string|int, mixed>
$line  : int
$mode  : string|null

Methods

__construct()  : mixed
resolveMode()  : string

Properties

Methods

__construct()

public __construct(string|null $mode, array<int, TItem> $items, int $line) : mixed
Parameters
$mode : string|null
$items : array<int, TItem>
$line : int

resolveMode()

public resolveMode(string $default) : string
Parameters
$default : string
Return values
string
On this page

Search results