_name = $name; $this->_title = $title; $this->_type = $type; $this->_headerPattern = $headerPattern; $this->_dataPattern = $dataPattern; $this->_value = NULL; } public function resetValue() { $this->_value = NULL; } /** * 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 */ public function setValue($value) { $this->_value = $value; } /** * @return bool */ public function validate() { if (CRM_Utils_System::isNull($this->_value)) { return TRUE; } return TRUE; } }