CRM_Custom_Import_Field
class CRM_Custom_Import_Field extends CRM_Contact_Import_Field
Class CRM_Custom_Import_Field
Properties
string | $_name | Name of the field | from CRM_Contact_Import_Field |
string | $_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 |
bool | $_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 |
string | $_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
Details
in CRM_Contact_Import_Field at line 148
__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)
in CRM_Contact_Import_Field at line 165
resetValue()
in CRM_Contact_Import_Field at line 177
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
in CRM_Contact_Import_Field at line 186
bool
validate()
Validate something we didn't document.