@@ -46,7 +46,7 @@ |
||
46 | 46 | <tbody> |
47 | 47 | <?php |
48 | 48 | } |
49 | - if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
49 | + if ($is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
50 | 50 | <tr> |
51 | 51 | <td width="40%"> |
52 | 52 | <?php |
@@ -12,22 +12,22 @@ discard block |
||
12 | 12 | |
13 | 13 | <div class="ee-registration-details-dv"> |
14 | 14 | <?php |
15 | - $registrations = $transaction->registrations(); |
|
16 | - $registrations = is_array($registrations) ? $registrations : []; |
|
17 | - $reg_count = count($registrations); |
|
18 | - $reg_cntr = 0; |
|
19 | - $event_name = ''; |
|
20 | - $wait_list = false; |
|
21 | - foreach ($registrations as $registration) { |
|
22 | - if ($registration instanceof EE_Registration) { |
|
23 | - if ($event_name != $registration->event_name() && ! empty($event_name)) { ?> |
|
15 | + $registrations = $transaction->registrations(); |
|
16 | + $registrations = is_array($registrations) ? $registrations : []; |
|
17 | + $reg_count = count($registrations); |
|
18 | + $reg_cntr = 0; |
|
19 | + $event_name = ''; |
|
20 | + $wait_list = false; |
|
21 | + foreach ($registrations as $registration) { |
|
22 | + if ($registration instanceof EE_Registration) { |
|
23 | + if ($event_name != $registration->event_name() && ! empty($event_name)) { ?> |
|
24 | 24 | </tbody> |
25 | 25 | </table> |
26 | 26 | <?php |
27 | - } |
|
28 | - $reg_cntr++; |
|
29 | - if ($event_name != $registration->event_name()) { |
|
30 | - ?> |
|
27 | + } |
|
28 | + $reg_cntr++; |
|
29 | + if ($event_name != $registration->event_name()) { |
|
30 | + ?> |
|
31 | 31 | <h5> |
32 | 32 | <span class="smaller-text grey-text"> |
33 | 33 | <?php esc_html_e('for', 'event_espresso'); ?> : |
@@ -50,25 +50,25 @@ discard block |
||
50 | 50 | </thead> |
51 | 51 | <tbody> |
52 | 52 | <?php |
53 | - } |
|
54 | - if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
53 | + } |
|
54 | + if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
55 | 55 | <tr> |
56 | 56 | <td width="40%"> |
57 | 57 | <?php |
58 | - if ($registration->attendee() instanceof EE_Attendee) { |
|
59 | - echo $registration->attendee()->full_name(true); |
|
60 | - } |
|
61 | - ?> |
|
58 | + if ($registration->attendee() instanceof EE_Attendee) { |
|
59 | + echo $registration->attendee()->full_name(true); |
|
60 | + } |
|
61 | + ?> |
|
62 | 62 | <p class="tiny-text" style="margin: .75em 0 0;"> |
63 | 63 | <?php |
64 | - if ($registration->count_question_groups()) { |
|
65 | - ?> |
|
64 | + if ($registration->count_question_groups()) { |
|
65 | + ?> |
|
66 | 66 | <a class="ee-icon-only-lnk" |
67 | 67 | href="<?php echo esc_url_raw($registration->edit_attendee_information_url()); ?>" |
68 | 68 | title="<?php esc_attr_e( |
69 | - 'Click here to edit Attendee Information', |
|
70 | - 'event_espresso' |
|
71 | - ); ?>" |
|
69 | + 'Click here to edit Attendee Information', |
|
70 | + 'event_espresso' |
|
71 | + ); ?>" |
|
72 | 72 | > |
73 | 73 | <span class="dashicons dashicons-groups"></span> |
74 | 74 | <?php esc_html_e('edit info', 'event_espresso'); ?> |
@@ -76,13 +76,13 @@ discard block |
||
76 | 76 | <?php } ?> |
77 | 77 | <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk" |
78 | 78 | href="<?php echo add_query_arg( |
79 | - ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'], |
|
80 | - EE_Registry::instance()->CFG->core->thank_you_page_url() |
|
81 | - ); ?>" |
|
79 | + ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'], |
|
80 | + EE_Registry::instance()->CFG->core->thank_you_page_url() |
|
81 | + ); ?>" |
|
82 | 82 | title="<?php esc_attr_e( |
83 | - 'Click here to resend the Registration Confirmation email', |
|
84 | - 'event_espresso' |
|
85 | - ); ?>" |
|
83 | + 'Click here to resend the Registration Confirmation email', |
|
84 | + 'event_espresso' |
|
85 | + ); ?>" |
|
86 | 86 | rel="<?php echo esc_attr($registration->reg_url_link()); ?>" |
87 | 87 | > |
88 | 88 | <span class="dashicons dashicons-email-alt"></span> |
@@ -96,55 +96,55 @@ discard block |
||
96 | 96 | <td width="35%" class="jst-left"> |
97 | 97 | <?php $registration->e_pretty_status(true) ?> |
98 | 98 | <?php |
99 | - if ($registration->status_ID() === EEM_Registration::status_id_wait_list) { |
|
100 | - $wait_list = true; |
|
101 | - } |
|
102 | - ?> |
|
99 | + if ($registration->status_ID() === EEM_Registration::status_id_wait_list) { |
|
100 | + $wait_list = true; |
|
101 | + } |
|
102 | + ?> |
|
103 | 103 | </td> |
104 | 104 | </tr> |
105 | 105 | <?php |
106 | - do_action( |
|
107 | - 'AHEE__thank_you_page_registration_details_template__after_registration_table_row', |
|
108 | - $registration |
|
109 | - ); |
|
110 | - $event_name = $registration->event_name(); |
|
111 | - } |
|
112 | - if ($reg_cntr >= $reg_count) { |
|
113 | - ?> |
|
106 | + do_action( |
|
107 | + 'AHEE__thank_you_page_registration_details_template__after_registration_table_row', |
|
108 | + $registration |
|
109 | + ); |
|
110 | + $event_name = $registration->event_name(); |
|
111 | + } |
|
112 | + if ($reg_cntr >= $reg_count) { |
|
113 | + ?> |
|
114 | 114 | </tbody> |
115 | 115 | </table> |
116 | 116 | <?php |
117 | - } |
|
118 | - } |
|
119 | - } |
|
120 | - ?> |
|
117 | + } |
|
118 | + } |
|
119 | + } |
|
120 | + ?> |
|
121 | 121 | <?php if ($is_primary && $SPCO_attendee_information_url) { ?> |
122 | 122 | <p class="small-text jst-rght"> |
123 | 123 | <a href='<?php echo esc_url_raw($SPCO_attendee_information_url) ?>'> |
124 | 124 | <?php esc_html_e( |
125 | - "Click here to edit All Attendee Information", |
|
126 | - 'event_espresso' |
|
127 | - ); ?> |
|
125 | + "Click here to edit All Attendee Information", |
|
126 | + 'event_espresso' |
|
127 | + ); ?> |
|
128 | 128 | </a> |
129 | 129 | </p> |
130 | 130 | <?php } |
131 | - if ($wait_list) { |
|
132 | - echo apply_filters( |
|
133 | - 'AFEE__thank_you_page_registration_details_template__wait_list_notice', |
|
134 | - sprintf( |
|
135 | - esc_html__( |
|
136 | - '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s', |
|
137 | - 'event_espresso' |
|
138 | - ), |
|
139 | - '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>', |
|
140 | - '</h6 ><p class="ee-wait-list-notice">', |
|
141 | - '</p ><br />' |
|
142 | - ) |
|
143 | - ); |
|
144 | - } |
|
131 | + if ($wait_list) { |
|
132 | + echo apply_filters( |
|
133 | + 'AFEE__thank_you_page_registration_details_template__wait_list_notice', |
|
134 | + sprintf( |
|
135 | + esc_html__( |
|
136 | + '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s', |
|
137 | + 'event_espresso' |
|
138 | + ), |
|
139 | + '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>', |
|
140 | + '</h6 ><p class="ee-wait-list-notice">', |
|
141 | + '</p ><br />' |
|
142 | + ) |
|
143 | + ); |
|
144 | + } |
|
145 | 145 | |
146 | - do_action('AHEE__thank_you_page_registration_details_template__after_registration_details'); |
|
147 | - ?> |
|
146 | + do_action('AHEE__thank_you_page_registration_details_template__after_registration_details'); |
|
147 | + ?> |
|
148 | 148 | |
149 | 149 | </div> |
150 | 150 | <!-- end of .registration-details --> |
@@ -5,7 +5,7 @@ |
||
5 | 5 | |
6 | 6 | <div id="espresso-thank-you-page-payment-details-dv"> |
7 | 7 | <?php |
8 | - if (! empty($payments)) { ?> |
|
8 | + if ( ! empty($payments)) { ?> |
|
9 | 9 | <table class="ee-table"> |
10 | 10 | <thead> |
11 | 11 | <tr> |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | <div id="espresso-thank-you-page-payment-details-dv"> |
15 | 15 | <?php |
16 | - if (! empty($payments)) { ?> |
|
16 | + if (! empty($payments)) { ?> |
|
17 | 17 | <table class="ee-table"> |
18 | 18 | <thead> |
19 | 19 | <tr> |
@@ -33,40 +33,40 @@ discard block |
||
33 | 33 | </thead> |
34 | 34 | <tbody> |
35 | 35 | <?php |
36 | - foreach ($payments as $payment) { |
|
37 | - echo $payment; // already escaped |
|
38 | - } |
|
39 | - ?> |
|
36 | + foreach ($payments as $payment) { |
|
37 | + echo $payment; // already escaped |
|
38 | + } |
|
39 | + ?> |
|
40 | 40 | </tbody> |
41 | 41 | </table> |
42 | 42 | <?php |
43 | - } else { |
|
44 | - if ($transaction->total()) { |
|
45 | - echo apply_filters( |
|
46 | - 'FHEE__payment_overview_template__no_payments_made', |
|
47 | - sprintf( |
|
48 | - esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'), |
|
49 | - '<p class="important-notice">', |
|
50 | - '</p>' |
|
51 | - ) |
|
52 | - ); |
|
53 | - do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction); |
|
54 | - } else { |
|
55 | - echo apply_filters( |
|
56 | - 'FHEE__payment_overview_template__no_payment_required', |
|
57 | - sprintf( |
|
58 | - esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'), |
|
59 | - '<p>', |
|
60 | - '</p>' |
|
61 | - ) |
|
62 | - ); |
|
63 | - do_action('AHEE__thank_you_page_payment_details_template__no_payment_required'); |
|
64 | - } |
|
65 | - } |
|
66 | - echo $gateway_content; // already escaped |
|
67 | - do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content); |
|
43 | + } else { |
|
44 | + if ($transaction->total()) { |
|
45 | + echo apply_filters( |
|
46 | + 'FHEE__payment_overview_template__no_payments_made', |
|
47 | + sprintf( |
|
48 | + esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'), |
|
49 | + '<p class="important-notice">', |
|
50 | + '</p>' |
|
51 | + ) |
|
52 | + ); |
|
53 | + do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction); |
|
54 | + } else { |
|
55 | + echo apply_filters( |
|
56 | + 'FHEE__payment_overview_template__no_payment_required', |
|
57 | + sprintf( |
|
58 | + esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'), |
|
59 | + '<p>', |
|
60 | + '</p>' |
|
61 | + ) |
|
62 | + ); |
|
63 | + do_action('AHEE__thank_you_page_payment_details_template__no_payment_required'); |
|
64 | + } |
|
65 | + } |
|
66 | + echo $gateway_content; // already escaped |
|
67 | + do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content); |
|
68 | 68 | |
69 | - ?> |
|
69 | + ?> |
|
70 | 70 | |
71 | 71 | <br/> |
72 | 72 | <?php do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); ?> |
@@ -6,17 +6,17 @@ |
||
6 | 6 | interface EEI_Contact |
7 | 7 | { |
8 | 8 | |
9 | - public function fname(); |
|
9 | + public function fname(); |
|
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | - public function lname(); |
|
13 | + public function lname(); |
|
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | - public function email(); |
|
17 | + public function email(); |
|
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | - public function phone(); |
|
21 | + public function phone(); |
|
22 | 22 | } |
@@ -6,33 +6,33 @@ |
||
6 | 6 | interface EEI_Has_Address |
7 | 7 | { |
8 | 8 | |
9 | - public function address(); |
|
9 | + public function address(); |
|
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | - public function address2(); |
|
13 | + public function address2(); |
|
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | - public function city(); |
|
17 | + public function city(); |
|
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | - public function state_ID(); |
|
21 | + public function state_ID(); |
|
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | - public function state_obj(); |
|
25 | + public function state_obj(); |
|
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | - public function country_ID(); |
|
29 | + public function country_ID(); |
|
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | - public function country_obj(); |
|
33 | + public function country_obj(); |
|
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | - public function zip(); |
|
37 | + public function zip(); |
|
38 | 38 | } |
@@ -6,22 +6,22 @@ |
||
6 | 6 | interface EEHI_Template |
7 | 7 | { |
8 | 8 | |
9 | - /** |
|
10 | - * EEH_Template::format_currency |
|
11 | - * This helper takes a raw float value and formats it according to the default config country currency settings, or the country currency settings from the supplied country ISO code |
|
12 | - * |
|
13 | - * @param float $amount raw money value |
|
14 | - * @param boolean $return_raw whether to return the formatted float value only with no currency sign or code |
|
15 | - * @param boolean $display_code whether to display the country code (USD). Default = TRUE |
|
16 | - * @param string $CNT_ISO 2 letter ISO code for a country |
|
17 | - * @param string $cur_code_span_class |
|
18 | - * @return string the html output for the formatted money value |
|
19 | - */ |
|
20 | - public static function format_currency( |
|
21 | - $amount = null, |
|
22 | - $return_raw = false, |
|
23 | - $display_code = true, |
|
24 | - $CNT_ISO = '', |
|
25 | - $cur_code_span_class = 'currency-code' |
|
26 | - ); |
|
9 | + /** |
|
10 | + * EEH_Template::format_currency |
|
11 | + * This helper takes a raw float value and formats it according to the default config country currency settings, or the country currency settings from the supplied country ISO code |
|
12 | + * |
|
13 | + * @param float $amount raw money value |
|
14 | + * @param boolean $return_raw whether to return the formatted float value only with no currency sign or code |
|
15 | + * @param boolean $display_code whether to display the country code (USD). Default = TRUE |
|
16 | + * @param string $CNT_ISO 2 letter ISO code for a country |
|
17 | + * @param string $cur_code_span_class |
|
18 | + * @return string the html output for the formatted money value |
|
19 | + */ |
|
20 | + public static function format_currency( |
|
21 | + $amount = null, |
|
22 | + $return_raw = false, |
|
23 | + $display_code = true, |
|
24 | + $CNT_ISO = '', |
|
25 | + $cur_code_span_class = 'currency-code' |
|
26 | + ); |
|
27 | 27 | } |
@@ -6,14 +6,14 @@ |
||
6 | 6 | interface EEI_Address_Formatter |
7 | 7 | { |
8 | 8 | |
9 | - /** |
|
10 | - * @param string $address |
|
11 | - * @param string $address2 |
|
12 | - * @param string $city |
|
13 | - * @param string $state |
|
14 | - * @param string $zip |
|
15 | - * @param string $country |
|
16 | - * @param string $CNT_ISO |
|
17 | - */ |
|
18 | - public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO); |
|
9 | + /** |
|
10 | + * @param string $address |
|
11 | + * @param string $address2 |
|
12 | + * @param string $city |
|
13 | + * @param string $state |
|
14 | + * @param string $zip |
|
15 | + * @param string $country |
|
16 | + * @param string $CNT_ISO |
|
17 | + */ |
|
18 | + public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO); |
|
19 | 19 | } |
@@ -12,9 +12,9 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * Expect a EE_messenger object back that is serving as the sending messenger for a message. |
|
17 | - * @return EE_messenger |
|
18 | - */ |
|
19 | - public function sending_messenger(); |
|
15 | + /** |
|
16 | + * Expect a EE_messenger object back that is serving as the sending messenger for a message. |
|
17 | + * @return EE_messenger |
|
18 | + */ |
|
19 | + public function sending_messenger(); |
|
20 | 20 | } |
@@ -11,16 +11,16 @@ |
||
11 | 11 | interface EEI_Line_Item_Object |
12 | 12 | { |
13 | 13 | |
14 | - /** |
|
15 | - * Return the name representing the object (i.e. Event Title, or Ticket Name). |
|
16 | - * @return string |
|
17 | - */ |
|
18 | - public function name(); |
|
14 | + /** |
|
15 | + * Return the name representing the object (i.e. Event Title, or Ticket Name). |
|
16 | + * @return string |
|
17 | + */ |
|
18 | + public function name(); |
|
19 | 19 | |
20 | 20 | |
21 | - /** |
|
22 | - * Return the ID representation for the object. |
|
23 | - * @return mixed int|string |
|
24 | - */ |
|
25 | - public function ID(); |
|
21 | + /** |
|
22 | + * Return the ID representation for the object. |
|
23 | + * @return mixed int|string |
|
24 | + */ |
|
25 | + public function ID(); |
|
26 | 26 | } |
@@ -6,88 +6,88 @@ |
||
6 | 6 | interface EEHI_Line_Item |
7 | 7 | { |
8 | 8 | |
9 | - /** |
|
10 | - * Adds an item to the purchase in the right spot |
|
11 | - * |
|
12 | - * @param EE_Line_Item $total_line_item |
|
13 | - * @param EE_Line_Item $line_item |
|
14 | - */ |
|
15 | - public function add_item(EE_Line_Item $total_line_item, EE_Line_Item $line_item); |
|
9 | + /** |
|
10 | + * Adds an item to the purchase in the right spot |
|
11 | + * |
|
12 | + * @param EE_Line_Item $total_line_item |
|
13 | + * @param EE_Line_Item $line_item |
|
14 | + */ |
|
15 | + public function add_item(EE_Line_Item $total_line_item, EE_Line_Item $line_item); |
|
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * Overwrites the previous tax by clearing out the old taxes, and creates a new |
|
21 | - * tax and updates the total line item accordingly |
|
22 | - * |
|
23 | - * @param EE_Line_Item $total_line_item |
|
24 | - * @param float $amount |
|
25 | - * @param string $name |
|
26 | - * @param string $description |
|
27 | - * @param string $code |
|
28 | - * @param boolean $add_to_existing_line_item if true and a duplicate line item with |
|
29 | - * the same code is found, $amount will be added onto it; otherwise will simply |
|
30 | - * set the taxes to match $amount |
|
31 | - * @return EE_Line_Item the new tax created |
|
32 | - */ |
|
33 | - public function set_total_tax_to( |
|
34 | - EE_Line_Item $total_line_item, |
|
35 | - $amount, |
|
36 | - $name = null, |
|
37 | - $description = null, |
|
38 | - $code = null, |
|
39 | - $add_to_existing_line_item = false |
|
40 | - ); |
|
19 | + /** |
|
20 | + * Overwrites the previous tax by clearing out the old taxes, and creates a new |
|
21 | + * tax and updates the total line item accordingly |
|
22 | + * |
|
23 | + * @param EE_Line_Item $total_line_item |
|
24 | + * @param float $amount |
|
25 | + * @param string $name |
|
26 | + * @param string $description |
|
27 | + * @param string $code |
|
28 | + * @param boolean $add_to_existing_line_item if true and a duplicate line item with |
|
29 | + * the same code is found, $amount will be added onto it; otherwise will simply |
|
30 | + * set the taxes to match $amount |
|
31 | + * @return EE_Line_Item the new tax created |
|
32 | + */ |
|
33 | + public function set_total_tax_to( |
|
34 | + EE_Line_Item $total_line_item, |
|
35 | + $amount, |
|
36 | + $name = null, |
|
37 | + $description = null, |
|
38 | + $code = null, |
|
39 | + $add_to_existing_line_item = false |
|
40 | + ); |
|
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | - /** |
|
45 | - * Makes all the line items which are children of $line_item taxable (or not). |
|
46 | - * Does NOT save the line items |
|
47 | - * |
|
48 | - * @param EE_Line_Item $line_item |
|
49 | - * @param boolean $taxable |
|
50 | - * @param string $code_substring_for_whitelist if this string is part of the line item's code |
|
51 | - * it will be whitelisted (ie, except from becoming taxable) |
|
52 | - */ |
|
53 | - public static function set_line_items_taxable( |
|
54 | - EE_Line_Item $line_item, |
|
55 | - $taxable = true, |
|
56 | - $code_substring_for_whitelist = null |
|
57 | - ); |
|
44 | + /** |
|
45 | + * Makes all the line items which are children of $line_item taxable (or not). |
|
46 | + * Does NOT save the line items |
|
47 | + * |
|
48 | + * @param EE_Line_Item $line_item |
|
49 | + * @param boolean $taxable |
|
50 | + * @param string $code_substring_for_whitelist if this string is part of the line item's code |
|
51 | + * it will be whitelisted (ie, except from becoming taxable) |
|
52 | + */ |
|
53 | + public static function set_line_items_taxable( |
|
54 | + EE_Line_Item $line_item, |
|
55 | + $taxable = true, |
|
56 | + $code_substring_for_whitelist = null |
|
57 | + ); |
|
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | - /** |
|
62 | - * Adds a simple item ( unrelated to any other model object) to the total line item, |
|
63 | - * in the correct spot in the line item tree. |
|
64 | - * |
|
65 | - * @param EE_Line_Item $total_line_item |
|
66 | - * @param string $name |
|
67 | - * @param float $unit_price |
|
68 | - * @param string $description |
|
69 | - * @param int $quantity |
|
70 | - * @param boolean $taxable |
|
71 | - * @param boolean $code if set to a value, ensures there is only one line item with that code |
|
72 | - * @return boolean success |
|
73 | - */ |
|
74 | - public function add_unrelated_item( |
|
75 | - EE_Line_Item $total_line_item, |
|
76 | - $name, |
|
77 | - $unit_price, |
|
78 | - $description = '', |
|
79 | - $quantity = 1, |
|
80 | - $taxable = false, |
|
81 | - $code = null |
|
82 | - ); |
|
61 | + /** |
|
62 | + * Adds a simple item ( unrelated to any other model object) to the total line item, |
|
63 | + * in the correct spot in the line item tree. |
|
64 | + * |
|
65 | + * @param EE_Line_Item $total_line_item |
|
66 | + * @param string $name |
|
67 | + * @param float $unit_price |
|
68 | + * @param string $description |
|
69 | + * @param int $quantity |
|
70 | + * @param boolean $taxable |
|
71 | + * @param boolean $code if set to a value, ensures there is only one line item with that code |
|
72 | + * @return boolean success |
|
73 | + */ |
|
74 | + public function add_unrelated_item( |
|
75 | + EE_Line_Item $total_line_item, |
|
76 | + $name, |
|
77 | + $unit_price, |
|
78 | + $description = '', |
|
79 | + $quantity = 1, |
|
80 | + $taxable = false, |
|
81 | + $code = null |
|
82 | + ); |
|
83 | 83 | |
84 | 84 | |
85 | 85 | |
86 | - /** |
|
87 | - * Gets the line item for the taxes subtotal |
|
88 | - * |
|
89 | - * @param EE_Line_Item $total_line_item of type EEM_Line_Item::type_total |
|
90 | - * @return \EE_Line_Item |
|
91 | - */ |
|
92 | - public static function get_taxes_subtotal(EE_Line_Item $total_line_item); |
|
86 | + /** |
|
87 | + * Gets the line item for the taxes subtotal |
|
88 | + * |
|
89 | + * @param EE_Line_Item $total_line_item of type EEM_Line_Item::type_total |
|
90 | + * @return \EE_Line_Item |
|
91 | + */ |
|
92 | + public static function get_taxes_subtotal(EE_Line_Item $total_line_item); |
|
93 | 93 | } |