\MyDataObjectImport
Synopsis
class MyDataObjectImport
extends CMSTricksCsvBulkLoader
{
- // members
- public array $columnMap = ;
- public string $objectClass = "MyDataObject";
- public static string $title = "Import MyDataObjects";
- // Inherited members from CMSTricksCsvBulkLoader
- public array $columnMap;
- public array $relationCallbacks;
- public array $duplicateChecks;
- public Boolean $deleteExistingRecords;
- public string $objectClass;
- public static string $title;
- public string $delimiter;
- public string $enclosure;
- public boolean $hasHeaderRow;
- // methods
- public void getTitle()
- public void getMyCodeCodes()
- public void getExportExampleData()
- public void getExportExampleDataForOneList()
- // Inherited methods from CMSTricksCsvBulkLoader
- public void getExportExampleData()
Hierarchy
Extends
Members
public
- $columnMap
- $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
- $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
- $title
—
string
Override this on subclasses to give the specific functions names.