\CMSTricksCsvBulkLoader
Synopsis
class CMSTricksCsvBulkLoader
extends CsvBulkLoader
{
- // members
- public array $columnMap = ;
- public array $relationCallbacks = ;
- public array $duplicateChecks = ;
- public Boolean $deleteExistingRecords = false;
- public string $objectClass = "";
- public static string $title = "Import Stuff";
- public string $delimiter = ',';
- public string $enclosure = '"';
- public boolean $hasHeaderRow = true;
- // methods
- public void getExportExampleData()
Hierarchy
Extends
- CsvBulkLoader
Members
public
- $columnMap
—
array
Map columns to DataObject-properties. - $deleteExistingRecords — Boolean
- $delimiter
—
string
Delimiter character (Default: comma). - $duplicateChecks
—
array
Specifies how to determine duplicates based on one or more provided fields in the imported data, matching to properties on the used {@link DataObject} class. - $enclosure
—
string
Enclosure character (Default: doublequote) - $hasHeaderRow
—
boolean
Identifies if the has a header row. - $objectClass
—
string
Each row in the imported dataset should map to one instance of this class (with optional property translation through {@self::$columnMaps}. - $relationCallbacks
—
array
Find a has_one relation based on a specific column value. - $title
—
string
Override this on subclasses to give the specific functions names.