trait CRM_Contact_Import_MetadataTrait

Trait CRM_Contact_Import_MetadataTrait

Trait for handling contact import specific metadata so it does not need to be passed from one form to the next.

Methods

array
getContactImportMetadata()

Get metadata for contact importable fields.

array
getRelationships()

Get sorted available relationships.

array
getHeaderPatterns()

Get an array of header patterns for importable keys.

array
getDataPatterns()

Get an array of header patterns for importable keys.

array
getFieldTitles()

Get an array of header patterns for importable keys.

getContactType()

Get configured contact type.

string
getContactSubType()

Get configured contact sub type.

Details

at line 16
protected array getContactImportMetadata()

Get metadata for contact importable fields.

Return Value

array

at line 64
protected array getRelationships()

Get sorted available relationships.

Return Value

array

at line 84
array getHeaderPatterns()

Get an array of header patterns for importable keys.

Return Value

array

at line 93
array getDataPatterns()

Get an array of header patterns for importable keys.

Return Value

array

at line 102
array getFieldTitles()

Get an array of header patterns for importable keys.

Return Value

array

at line 109
protected getContactType()

Get configured contact type.

at line 118
protected string getContactSubType()

Get configured contact sub type.

Return Value

string