Import and Export
The OpenRegister application supports importing and exporting data in multiple formats:
- JSON for configuration data
- Excel (.xlsx) for bulk data
- CSV for simple data
Import
The import functionality is handled by the ImportService class, which provides methods for different file formats.
Import Methods
JSON Import
public function importFromJson(string $jsonData, ?Register $register = null, ?Schema $schema = null): array
Excel Import
public function importFromExcel(string $filePath, ?Register $register = null, ?Schema $schema = null): array
CSV Import
public function importFromCsv(string $filePath, ?Register $register = null, ?Schema $schema = null): array
Import Parameters
filePath(string): Path to the file to importregister(Register|null): Optional register to associate with imported objectsschema(Schema|null): Optional schema to associate with imported objects