update import opetion by upload

This commit is contained in:
salam committed 2026-06-03 08:06:31 +02:00
1 parent 37d28eec21
commit 0221ace4d2
15 files changed
+194 -253

No files matched your search

+7 -7
View File
@@ -19,30 +19,30 @@ class StatistikoImporter
public static int $startQueries;
public static function run($record): void
public static function run(object $record, string $importmode): void
{
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('max_execution_time', -1);
$table = $record['data_type'];
$table = $record->data_type;
$filePath = $record['file_name'];
$filePath = $record->file_name;
ImportBenchmark::start($table);
switch ($record['data_type']) {
case 'details':
ImportDetails::run($filePath);
ImportDetails::run($filePath, $importmode);
break;
case 'events':
ImportEvents::run($filePath);
ImportEvents::run($filePath, $importmode);
break;
case 'fixtures':
ImportFixtures::run($filePath);
ImportFixtures::run($filePath, $importmode);
break;
case 'player':
ImportPlayer::run($filePath);
ImportPlayer::run($filePath, $importmode);
break;
}