public static function CommerceMigrateExampleMigration::csvColumns in Commerce Migrate 7
Provide the names of the incoming CSV file columns.
WARNING! Column names MUST BE IN ORDER to CSV file structure!
Return value
string[] An associative array where key is a machine name of a field from CSV file and value - human-readable name of a CSV column.
2 calls to CommerceMigrateExampleMigration::csvColumns()
- CommerceMigrateExampleMigration::buildMap in commerce_migrate_example/
migrations/ abstractions/ migration.inc - Create a map object for tracking the relationships between source rows.
- CommerceMigrateExampleMigration::__construct in commerce_migrate_example/
migrations/ abstractions/ migration.inc - General initialization of a Migration object.
2 methods override CommerceMigrateExampleMigration::csvColumns()
- CommerceMigrateExampleOrdersCsv::csvColumns in commerce_migrate_example/
migrations/ abstractions/ orders.inc - Provide the names of the incoming CSV file columns.
- CommerceMigrateExampleProductsCsv::csvColumns in commerce_migrate_example/
migrations/ abstractions/ products.inc - Provide the names of the incoming CSV file columns.
File
- commerce_migrate_example/
migrations/ abstractions/ migration.inc, line 94 - A simple base class that contains things common to all CommerceMigrateExample classes.
Class
- CommerceMigrateExampleMigration
- Class CommerceMigrateExampleMigration.
Code
public static function csvColumns() {
return array();
}