You are here

abstract public function MigrateSource::fields in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/source.inc \MigrateSource::fields()

Derived classes must implement fields(), returning a list of available source fields.

Return value

array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.

11 methods override MigrateSource::fields()
MigrateSourceCSV::fields in plugins/sources/csv.inc
Returns a list of fields available to be mapped from the source query.
MigrateSourceDB2::fields in plugins/sources/db2.inc
Returns a list of fields available to be mapped from the source query.
MigrateSourceJSON::fields in plugins/sources/json.inc
Returns a list of fields available to be mapped from the source query.
MigrateSourceList::fields in plugins/sources/list.inc
Returns a list of fields available to be mapped from the source query. Since we can't reliably figure out what "fields" are in the source, it's up to the implementing Migration constructor to fill them in.
MigrateSourceMongoDB::fields in plugins/sources/mongodb.inc
Returns a list of fields available to be mapped from the source query.

... See full list

File

includes/source.inc, line 114
Define base for migration sources.

Class

MigrateSource
Abstract base class for source handling.

Code

public abstract function fields();