/**
  * Overridden parent method to perform processing before form is build
  *
  * @access public
  */
 public function preProcess()
 {
     parent::preProcess();
     if (!$this->conditionClass instanceof CRM_CivirulesConditions_Generic_FieldValueChangeComparison) {
         throw new Exception("Not a valid value comparison class");
     }
 }
コード例 #2
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['group_id'] = $this->_submitValues['group_id'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #3
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['payment_instrument_id'] = $this->_submitValues['payment_instrument_id'];
     $data['operator'] = $this->_submitValues['operator'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #4
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['operator'] = $this->_submitValues['operator'];
     $data['no_of_recurring'] = $this->_submitValues['no_of_recurring'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #5
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['phone_type'] = $this->_submitValues['phone_type'];
     $data['location_type'] = $this->_submitValues['location_type'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #6
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['membership_status_id'] = $this->_submitValues['membership_status_id'];
     $data['operator'] = $this->_submitValues['operator'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['operator'] = $this->_submitValues['operator'];
     $data['no_of_days'] = $this->_submitValues['no_of_days'];
     $data = CRM_CivirulesConditions_Utils_Period::getConditionParams($this->_submitValues, $data);
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #8
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     $data['count_operator'] = $this->_submitValues['count_operator'];
     $data['no_of_contributions'] = $this->_submitValues['no_of_contributions'];
     $data['financial_type'] = $this->_submitValues['financial_type'];
     $data['amount_operator'] = $this->_submitValues['amount_operator'];
     $data['amount'] = $this->_submitValues['amount'];
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }
コード例 #9
0
 /**
  * Overridden parent method to process form data after submission
  *
  * @throws Exception when rule condition not found
  * @access public
  */
 public function postProcess()
 {
     if (isset($this->_submitValues['has_recurring'])) {
         $data['has_recurring'] = $this->_submitValues['has_recurring'];
     } else {
         $data['has_recurring'] = 0;
     }
     $this->ruleCondition->condition_params = serialize($data);
     $this->ruleCondition->save();
     parent::postProcess();
 }