Remove last references to _contributeMode
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 21:39:44 +0000 (10:39 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 21:39:44 +0000 (10:39 +1300)
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/AdditionalPayment.php
CRM/Contribute/Form/Contribution.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/ContributionBase.php
CRM/Event/Form/Participant.php
CRM/Event/Form/Registration.php
CRM/Member/Form/Membership.php

index aa378a4ec4e99718d0a265441859348e6978e6e8..b458d21261b93f85fb753163d54766fbb5e7b4f4 100644 (file)
@@ -153,8 +153,6 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task {
    */
   public $_pledgeValues;
 
-  public $_contributeMode = 'direct';
-
   public $_context;
 
   public $_compId;
index 25e0a275e2ea2b2f38480638c0405854f485e965..4fdcb8e72290baaa1f0b8794ba2ba3d3d6a8be49 100644 (file)
@@ -19,7 +19,6 @@
  * This form records additional payments needed when event/contribution is partially paid.
  */
 class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_AbstractEditPayment {
-  public $_contributeMode = 'direct';
 
   /**
    * Id of the component entity
index 7edb7b92d67de67867cb0a892f2da0fd02148a28..1d604cffe8ccaffed404c5844a8678ee44c54f13 100644 (file)
@@ -96,8 +96,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
    */
   public $_pledgeValues;
 
-  public $_contributeMode = 'direct';
-
   public $_context;
 
   /**
index 228646f9342c301b68ca7abc0f175f03e5f840c5..3b6df20e2874b289c0a41e031ce0d3e2d820372f 100644 (file)
@@ -1974,15 +1974,6 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       // It can be blank with a $0 transaction - then no processor needs to be selected
       $form->_paymentProcessor = $form->_paymentProcessors[$form->_params['payment_processor_id']];
     }
-    if (!empty($params['payment_processor_id'])) {
-      // The concept of contributeMode is deprecated as is the billing_mode concept.
-      if ($form->_paymentProcessor['billing_mode'] == 1) {
-        $form->_contributeMode = 'direct';
-      }
-      else {
-        $form->_contributeMode = 'notify';
-      }
-    }
 
     if (!empty($params['useForMember'])) {
       $form->set('useForMember', 1);
index f1f4a242cd8a0eadf361804f6db8dab083fd4757..b3bccf85e05efb63b108d9f33415d2cbb25d7258 100644 (file)
@@ -165,22 +165,6 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
 
   public $_action;
 
-  /**
-   * Contribution mode.
-   *
-   * In general we are trying to deprecate this parameter but some templates and processors still
-   * require it to denote whether the processor redirects offsite (notify) or not.
-   *
-   * The intent is that this knowledge should not be required and all contributions should
-   * be created in a pending state and updated based on the payment result without needing to be
-   * aware of the processor workings.
-   *
-   * @var string
-   *
-   * @deprecated
-   */
-  public $_contributeMode;
-
   /**
    * Contribution page supports memberships
    * @var bool
@@ -510,8 +494,6 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
     // on every form, rather than being passed from form to form.
     $this->set('amount_block_is_active', $this->isFormSupportsNonMembershipContributions());
 
-    $this->_contributeMode = $this->get('contributeMode');
-
     //assigning is_monetary and is_email_receipt to template
     $this->assign('is_monetary', $this->_values['is_monetary']);
     $this->assign('is_email_receipt', $this->_values['is_email_receipt']);
index 9694e95f0fa6d180e12378529f483d2c8d9eab97..9d7cd4a06a3b0f67bd0e0d97d2351cc4b8de93fd 100644 (file)
@@ -153,15 +153,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
    *
    * @var array
    */
-  public $_lineItem = NULL;
-
-  /**
-   * Contribution mode for event registration for offline mode.
-   *
-   * @var string
-   * @deprecated
-   */
-  public $_contributeMode = 'direct';
+  public $_lineItem;
 
   public $_online;
 
index 8f52788db79ac384aa25b263847bac5e4624df7e..91974d9b4113a62f83f182d6bd47d7f6c12447bf 100644 (file)
@@ -380,8 +380,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
       );
       CRM_Utils_System::redirect($url);
     }
-    // The concept of contributeMode is deprecated.
-    $this->_contributeMode = $this->get('contributeMode');
 
     $this->assign('paidEvent', $this->getEventValue('is_monetary'));
     // we do not want to display recently viewed items on Registration pages
index e6e1debc70c281bf005ac2a6c7714489f388e546..deb1a582e133eb61c811cc8e75c1092a05361a6c 100644 (file)
@@ -29,8 +29,6 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
    */
   public $_mode;
 
-  public $_contributeMode = 'direct';
-
   protected $_memTypeSelected;
 
   /**