X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FImport%2FField.php;h=bce94036858117becab9f00c354dce5e890f5ba8;hb=3b7bf9514d92a68e9adb10ae1fe33f8d6ca3da7d;hp=535b5fd75cbfe8fe89c80dc548a8edec14f7aae2;hpb=af321125666c7444accea956adaad22395fcd4c9;p=civicrm-core.git diff --git a/CRM/Contribute/Import/Field.php b/CRM/Contribute/Import/Field.php index 535b5fd75c..bce9403685 100644 --- a/CRM/Contribute/Import/Field.php +++ b/CRM/Contribute/Import/Field.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,12 +23,12 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -113,14 +113,20 @@ class CRM_Contribute_Import_Field { } /** - * The value is in string format. convert the value to the type of this field + * 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 + * + * @param $value */ public function setValue($value) { $this->_value = $value; } /** + * Validate a field. + * * @return bool */ public function validate() { @@ -176,7 +182,7 @@ class CRM_Contribute_Import_Field { else { return FALSE; } - break; + break; case 'payment_instrument': static $paymentInstruments = NULL; @@ -210,4 +216,5 @@ class CRM_Contribute_Import_Field { return TRUE; } + }