X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FPaymentProcessorType.php;h=0f77aebd9813ca4d8e46ad43e6710041d4d44c86;hb=0d5147553408267419ef1e8fbe3cfecb83dff7ba;hp=e0d9a83c207f5f66cb4371d07381082f991046e0;hpb=23e35f75793a63e1c50249d322bcf1f2439415f8;p=civicrm-core.git diff --git a/CRM/Admin/Form/PaymentProcessorType.php b/CRM/Admin/Form/PaymentProcessorType.php index e0d9a83c20..0f77aebd98 100644 --- a/CRM/Admin/Form/PaymentProcessorType.php +++ b/CRM/Admin/Form/PaymentProcessorType.php @@ -1,7 +1,7 @@ _fields = array( @@ -151,7 +151,6 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { * @param bool $check * * @return void - * @access public */ public function buildQuickForm($check = FALSE) { parent::buildQuickForm(); @@ -160,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); @@ -181,7 +180,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { /** * @return array */ - function setDefaultValues() { + public function setDefaultValues() { $defaults = array(); if (!$this->_id) { @@ -193,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)) { @@ -208,12 +207,11 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form { /** * Process the form submission * - * @access public * * @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); @@ -228,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']; @@ -246,5 +244,5 @@ UPDATE civicrm_payment_processor SET is_default = 0"; } $dao->save(); } -} +}