X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FPaymentProcessorType.php;h=49b343f23c89173953caea5589cb6d154394765f;hb=6cc256693c25de60d6877cdccf47243c545c5531;hp=a02bfd5842925db6d0b6cf97d43ddb7bbcbf921b;hpb=fa92b4af1c4abf280689cea6445c7a9b99858831;p=civicrm-core.git diff --git a/CRM/Admin/Form/PaymentProcessorType.php b/CRM/Admin/Form/PaymentProcessorType.php index a02bfd5842..49b343f23c 100644 --- a/CRM/Admin/Form/PaymentProcessorType.php +++ b/CRM/Admin/Form/PaymentProcessorType.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: PaymentProcessorType.php 9702 2007-05-29 23:57:16Z lobo $ * */ @@ -146,7 +146,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { } /** - * Build the form object + * Build the form object. * * @param bool $check * @@ -159,7 +159,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { return; } - $attributes = CRM_Core_DAO::getAttribute( 'CRM_Financial_DAO_PaymentProcessorType' ); + $attributes = CRM_Core_DAO::getAttribute('CRM_Financial_DAO_PaymentProcessorType'); foreach ($this->_fields as $field) { $required = CRM_Utils_Array::value('required', $field, FALSE); @@ -192,7 +192,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { return $defaults; } - $dao = new CRM_Financial_DAO_PaymentProcessorType( ); + $dao = new CRM_Financial_DAO_PaymentProcessorType(); $dao->id = $this->_id; if (!$dao->find(TRUE)) { @@ -205,13 +205,13 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { } /** - * Process the form submission + * Process the form submission. * * * @return void */ public function postProcess() { - CRM_Utils_System::flushCache( 'CRM_Financial_DAO_PaymentProcessorType' ); + CRM_Utils_System::flushCache('CRM_Financial_DAO_PaymentProcessorType'); if ($this->_action & CRM_Core_Action::DELETE) { CRM_Financial_BAO_PaymentProcessorType::del($this->_id); @@ -226,12 +226,12 @@ UPDATE civicrm_payment_processor SET is_default = 0"; CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray); } - $dao = new CRM_Financial_DAO_PaymentProcessorType( ); + $dao = new CRM_Financial_DAO_PaymentProcessorType(); - $dao->id = $this->_id; + $dao->id = $this->_id; $dao->is_default = CRM_Utils_Array::value('is_default', $values, 0); - $dao->is_active = CRM_Utils_Array::value('is_active', $values, 0); - $dao->is_recur = CRM_Utils_Array::value('is_recur', $values, 0); + $dao->is_active = CRM_Utils_Array::value('is_active', $values, 0); + $dao->is_recur = CRM_Utils_Array::value('is_recur', $values, 0); $dao->name = $values['name']; $dao->description = $values['description']; @@ -244,4 +244,5 @@ UPDATE civicrm_payment_processor SET is_default = 0"; } $dao->save(); } + }