class CRM_Event_Import_Field

Class CRM_Event_Import_Field

Properties

$_name Name of the field
$_title Title of the field to be used in display
enum $_type Type of field
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

Methods

__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $headerPattern = '//', string $dataPattern = '//')

No description

resetValue()

No description

setValue(string $value)

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

bool
validate()

No description

Details

at line 78
__construct(string $name, $title, int $type = CRM_Utils_Type::T_INT, string $headerPattern = '//', string $dataPattern = '//')

Parameters

string $name
$title
int $type
string $headerPattern
string $dataPattern

at line 88
resetValue()

at line 97
setValue(string $value)

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

Parameters

string $value

at line 104
bool validate()

Return Value

bool