/**
* Type of field
- * @var enum
+ * @var int
*/
public $_type;
/**
* Value of this field
- * @var object
+ * @var string|null
*/
public $_value;
/**
* @param string $name
- * @param $title
+ * @param string $title
* @param int $type
* @param string $headerPattern
* @param string $dataPattern
/**
* The value is in string format. convert the value to the type of this field
* and set the field value with the appropriate type
- * @param $value
+ * @param string $value
*/
public function setValue($value) {
$this->_value = $value;
/**
* Type of field
- * @var enum
+ * @var int
*/
public $_type;
/**
* Value of this field
- * @var object
+ * @var string|null
*/
public $_value;
/**
* @param string $name
- * @param $title
+ * @param string $title
* @param int $type
* @param string $columnPattern
* @param string $dataPattern
* Convert the value to the type of this field
* and set the field value with the appropriate type
*
- * @param mixed $value
+ * @param string $value
*/
public function setValue($value) {
$this->_value = $value;
/**
* Type of field
- * @var enum
+ * @var int
*/
public $_type;
/**
* Value of this field
- * @var object
+ * @var string|null
*/
public $_value;
/**
* @param string $name
- * @param $title
+ * @param string $title
* @param int $type
* @param string $headerPattern
* @param string $dataPattern
* The value is in string format. Convert the value to the type of this field
* and set the field value with the appropriate type
*
- * @param $value
+ * @param string $value
*/
public function setValue($value) {
$this->_value = $value;
/**
* Type of field
- * @var enum
+ * @var int
*/
public $_type;
/**
* Value of this field
- * @var object
+ * @var string|null
*/
public $_value;
/**
* @param string $name
- * @param $title
+ * @param string $title
* @param int $type
* @param string $headerPattern
* @param string $dataPattern
switch ($this->_name) {
case 'contact_id':
- // note: we validate extistence of the contact in API, upon
- // insert (it would be too costlty to do a db call here)
+ // note: we validate existence of the contact in API, upon
+ // insert (it would be too costly to do a db call here)
return CRM_Utils_Rule::integer($this->_value);
case 'register_date':
/**
* Type of field
- * @var enum
+ * @var int
*/
public $_type;
/**
* Value of this field
- * @var object
+ * @var string|null
*/
public $_value;
/**
* @param string $name
- * @param $title
+ * @param string $title
* @param int $type
* @param string $headerPattern
* @param string $dataPattern
* The value is in string format. convert the value to the type of this field
* and set the field value with the appropriate type
*
- * @param $value
+ * @param string $value
*/
public function setValue($value) {
$this->_value = $value;
switch ($this->_name) {
case 'contact_id':
- // note: we validate extistence of the contact in API, upon
- // insert (it would be too costlty to do a db call here)
+ // note: we validate existence of the contact in API, upon
+ // insert (it would be too costly to do a db call here)
return CRM_Utils_Rule::integer($this->_value);
case 'receive_date':