com\setasign\Konquadrat\Import\RowImport

AbstractRowImportWithImportRelations Class AbstractRowImport

File: /Konquadrat/src/Import/RowImport/AbstractRowImportWithImportRelations.php

Class hierarchy

Implements

Summary

Properties

$languageManager

$objectConfig

$objectFinder

$objectManager


Methods

importRow()

abstract public RowImportInterface::importRow (): void

Imports the row.

Note that importRow should not throw any exceptions! All possible errors should be found with the sanitizeRow!

Parameters
$row : MainImportRow
 
Exceptions

Throws \Throwable

sanitizeRow()

abstract public RowImportInterface::sanitizeRow (): void

Sanitize the row.

Note that sanitizeRow MUST NOT throw any exceptions!

Parameters
$row : MainImportRow
 

validateEmail()

protected AbstractRowImport::validateEmail (
ImportRow $importRow,
string $columnName
): void
Parameters
$importRow : ImportRow
 
$columnName : string
 

validateField()

protected AbstractRowImport::validateField (
string $objectType,
MainImportRow $importRow,
string $columnName,
bool $allowEmpty = false,
?callable $extraValidation = null,
?string $fieldName = null
): void
Parameters
$objectType : string
 
$importRow : MainImportRow
 
$columnName : string
 
$allowEmpty : bool
 
$extraValidation : ?callable

function(MainImportRow $importRow, string $columnName): void

$fieldName : ?string