mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-11-16 10:16:12 +01:00
Daniel Siepmann
723ea3b512
The schema is very flexible and some values are not validated upfront. This will result in many objects which we currently can not map. This resulted in an exception breaking the rest of the import. We now handle the broken mapping and skip those objects with proper logging. This allows to continue with import and report and debug those objects in order to improve the mapping step by step. Relates: #10198
47 lines
1.5 KiB
PHP
47 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301, USA.
|
|
*/
|
|
|
|
namespace WerkraumMedia\ThueCat\Domain\Model\Backend;
|
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
|
abstract class ImportLogEntry extends AbstractEntity
|
|
{
|
|
abstract public function getRemoteId(): string;
|
|
|
|
abstract public function getErrors(): array;
|
|
|
|
abstract public function hasErrors(): bool;
|
|
|
|
/**
|
|
* The type as defined within TCA.
|
|
*/
|
|
abstract public function getType(): string;
|
|
|
|
/**
|
|
* Return an column -> value array used for insertion into the database.
|
|
* Only return special for the concrete instance, or empty array.
|
|
* Defaults inherited by this class are already handled.
|
|
*/
|
|
abstract public function getInsertion(): array;
|
|
}
|