class CRM_Custom_Import_Field extends CRM_Contact_Import_Field

Class CRM_Custom_Import_Field

Properties

$_name Name of the field from CRM_Contact_Import_Field
$_title Title of the field to be used in display from CRM_Contact_Import_Field
enum $_type Type of field from CRM_Contact_Import_Field
boolean $_required Is this field required from CRM_Contact_Import_Field
object $_payload Data to be carried for use by a derived class from CRM_Contact_Import_Field
string $_columnPattern Regexp to match the CSV header of this column/field from CRM_Contact_Import_Field
string $_dataPattern Regexp to match the pattern of data from various column/fields from CRM_Contact_Import_Field
string $_headerPattern Regexp to match the pattern of header from various column/fields from CRM_Contact_Import_Field
int $_hasLocationType Location type from CRM_Contact_Import_Field
string $_phoneType Does this field have a phone type from CRM_Contact_Import_Field
object $_value Value of this field from CRM_Contact_Import_Field
$_related Does this field have a relationship info from CRM_Contact_Import_Field
string $_relatedContactType Does this field have a relationship Contact Type from CRM_Contact_Import_Field
string $_relatedContactDetails Does this field have a relationship Contact Details from CRM_Contact_Import_Field
int $_relatedContactLocType Does this field have a related Contact info of Location Type from CRM_Contact_Import_Field
string $_relatedContactPhoneType Does this field have a related Contact info of Phone Type from CRM_Contact_Import_Field

Methods

__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $columnPattern = '//', string $dataPattern = '//', null $hasLocationType = NULL, null $phoneType = NULL, null $related = NULL, null $relatedContactType = NULL, null $relatedContactDetails = NULL, null $relatedContactLocType = NULL, null $relatedContactPhoneType = NULL)

No description

resetValue()

No description

setValue(mixed $value)

The value is in string format.

bool
validate()

Validate something we didn't document.

Details

__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $columnPattern = '//', string $dataPattern = '//', null $hasLocationType = NULL, null $phoneType = NULL, null $related = NULL, null $relatedContactType = NULL, null $relatedContactDetails = NULL, null $relatedContactLocType = NULL, null $relatedContactPhoneType = NULL)

Parameters

string $name
$title
int $type
string $columnPattern
string $dataPattern
null $hasLocationType
null $phoneType
null $related
null $relatedContactType
null $relatedContactDetails
null $relatedContactLocType
null $relatedContactPhoneType

resetValue()

setValue(mixed $value)

The value is in string format.

Convert the value to the type of this field and set the field value with the appropriate type

Parameters

mixed $value

bool validate()

Validate something we didn't document.

Return Value

bool