X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMember%2FImport%2FField.php;h=2055d17bc200d5a5cd06db5316e098a03cb8a9c1;hb=22e263ad985b62de5cf7bdaf09555bfb3f0cd322;hp=a8ccd7f3da94012ede94e89cf030531060c5fb41;hpb=5563fe43b44b754e6441841a5d92664470b20366;p=civicrm-core.git diff --git a/CRM/Member/Import/Field.php b/CRM/Member/Import/Field.php index a8ccd7f3da..2055d17bc2 100644 --- a/CRM/Member/Import/Field.php +++ b/CRM/Member/Import/Field.php @@ -1,7 +1,7 @@ _name = $name; $this->_title = $title; $this->_type = $type; @@ -95,19 +101,22 @@ class CRM_Member_Import_Field { $this->_value = NULL; } - function resetValue() { + public function resetValue() { $this->_value = NULL; } /** - * the value is in string format. convert the value to the type of this field + * The value is in string format. convert the value to the type of this field * and set the field value with the appropriate type */ - function setValue($value) { + public function setValue($value) { $this->_value = $value; } - function validate() { + /** + * @return bool + */ + public function validate() { if (CRM_Utils_System::isNull($this->_value)) { return TRUE; @@ -189,10 +198,9 @@ class CRM_Member_Import_Field { if (!array_key_exists($customFieldID, $customFields)) { return FALSE; } - return CRM_Core_BAO_CustomValue::typecheck($customFields[$customFieldID]['data_type'], $this->_value); + return CRM_Core_BAO_CustomValue::typecheck($customFields[$customFieldID]['data_type'], $this->_value); } return TRUE; } } -