Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
MP_Searches::_get_searches( array $searches )
Get Searches.
Contents
Parameters Parameters
- $searches
-
(array) (Required) searches
Return Return
(array) Calculate data.
- ''calculate_date''
(string) calculate data - ''original''
(string) loan Amount - ''down_payment''
(string) down payment - ''interest''
(string) interest - ''term''
(string) term - ''loan_after_down''
(string) loan after down - ''down_payment_amount''
(string) down payment amount - ''monthly_payment''
(string) monthly payment - ''total_payments''
(string) total payments
Source Source
File: mortgage-platform/Inc/MP_Searches.php
private function _get_searches( $searches ) {
$lead_searches = array(
'calculate_date' => current_time( 'Y-m-d H:i:s' ),
esc_attr( $this->calculator_settings['original'] ) => isset( $searches['loanAmount'] ) ? $searches['loanAmount'] : '',
esc_attr( $this->calculator_settings['down_payment'] ) => isset( $searches['downPayment'] ) ? $searches['downPayment'] : '',
esc_attr( $this->calculator_settings['interest'] ) => isset( $searches['interest'] ) ? $searches['interest'] : '',
esc_attr( $this->calculator_settings['term'] ) => isset( $searches['term'] ) ? $searches['term'] : '',
esc_attr( $this->calculator_settings['loan_after_down'] ) => isset( $searches['loanAfterDown'] ) ? $searches['loanAfterDown'] : '',
esc_attr( $this->calculator_settings['down_payment_amount'] ) => isset( $searches['downPaymentAmount'] ) ? $searches['downPaymentAmount'] : '',
esc_attr( $this->calculator_settings['monthly_payment'] ) => isset( $searches['monthlyPayment'] ) ? $searches['monthlyPayment'] : '',
esc_attr( $this->calculator_settings['total_payments'] ) => isset( $searches['totalPayments'] ) ? $searches['totalPayments'] : '',
);
return $lead_searches;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |