CRM_Contribute_Import_Field
class CRM_Contribute_Import_Field
Properties
string | $_name | Name of the field | |
string | $_title | Title of the field to be used in display | |
enum | $_type | Type of field | |
bool | $_required | Is this field required. | |
object | $_payload | Data to be carried for use by a derived class | |
string | $_headerPattern | Regexp to match the CSV header of this column/field | |
string | $_dataPattern | Regexp to match the pattern of data from various column/fields | |
object | $_value | Value of this field | |
string | $_softCreditField | This is soft credit field |
Methods
__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $headerPattern = '//', string $dataPattern = '//', null $softCreditField = NULL)
No description
resetValue()
No description
setValue($value)
Set a value.
bool
validate()
Validate a field.
Details
at line 103
__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $headerPattern = '//', string $dataPattern = '//', null $softCreditField = NULL)
at line 113
resetValue()
at line 125
setValue($value)
Set a 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
at line 134
bool
validate()
Validate a field.