CoolCMS API

ImportStructureIssueDto
in package

FinalYes

Records a defect in the file shape that the parser caught.

It is carried in the DTO of the item where it arose, so one typo fails exactly one card (hard error) and not the whole file. Defects above the <product> level (e.g. <bundles>) are held by ImportDto::$rootIssues.

Table of Contents

Constants

KIND_ENCODING  : string = 'encoding'
Soft file-level warning (e.g. CSV automatically converted from cp1250 to UTF-8).
KIND_MALFORMED  : string = 'malformed'
Known tag in the wrong place or missing a required part (e.g. `<price>` without `currency`).
KIND_RESERVED  : string = 'reserved'
Reserved tag: the grammar knows it, this version does not support it.
KIND_UNKNOWN_ATTRIBUTE  : string = 'unknownAttribute'
Unknown attribute on a known element.
KIND_UNKNOWN_TAG  : string = 'unknownTag'
Unknown element, i.e. a typo in a tag.

Properties

$context  : string
$kind  : string
$line  : int
$name  : string

Methods

__construct()  : mixed

Constants

KIND_ENCODING

Soft file-level warning (e.g. CSV automatically converted from cp1250 to UTF-8).

public string KIND_ENCODING = 'encoding'

KIND_MALFORMED

Known tag in the wrong place or missing a required part (e.g. `<price>` without `currency`).

public string KIND_MALFORMED = 'malformed'

KIND_RESERVED

Reserved tag: the grammar knows it, this version does not support it.

public string KIND_RESERVED = 'reserved'

KIND_UNKNOWN_ATTRIBUTE

Unknown attribute on a known element.

public string KIND_UNKNOWN_ATTRIBUTE = 'unknownAttribute'

KIND_UNKNOWN_TAG

Unknown element, i.e. a typo in a tag.

public string KIND_UNKNOWN_TAG = 'unknownTag'

Properties

Methods

__construct()

public __construct(string $kind, string $name, int $line[, string $context = '' ]) : mixed
Parameters
$kind : string
$name : string
$line : int
$context : string = ''
On this page

Search results