Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter2.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter2 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter2 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | public $paypal = false; // true for paypal only version |
6 | 6 | |
7 | 7 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter3.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter3 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter3 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | public $paypal = false; // true for paypal only version |
6 | 6 | |
7 | 7 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter4.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter4 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter4 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | public $paypal = false; // true for paypal only version |
6 | 6 | |
7 | 7 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter5.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter5 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter5 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | |
6 | 6 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
7 | 7 | global $wgScriptPath; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter6.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter6 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter6 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | |
6 | 6 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
7 | 7 | global $wgScriptPath; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnLetter extends PayflowProGateway_Form_TwoStepTwoColumn { |
| 4 | +class Gateway_Form_TwoStepTwoColumnLetter extends Gateway_Form_TwoStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgScriptPath; |
7 | 7 | |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter7.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter7 extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter7 extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | |
6 | 6 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
7 | 7 | global $wgScriptPath; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnPayPal.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnPayPal extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnPayPal extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | parent::__construct( $form_data, $form_errors, $gateway ); |
7 | 7 | } |
Index: trunk/extensions/DonationInterface/gateway_forms/SingleColumn.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_SingleColumn extends PayflowProGateway_Form_TwoColumnLetter { |
| 4 | +class Gateway_Form_SingleColumn extends Gateway_Form_TwoColumnLetter { |
5 | 5 | |
6 | 6 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
7 | 7 | global $wgScriptPath; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetterCA.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnLetterCA extends PayflowProGateway_Form_TwoStepTwoColumn { |
| 4 | +class Gateway_Form_TwoStepTwoColumnLetterCA extends Gateway_Form_TwoStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgScriptPath; |
7 | 7 | |
Index: trunk/extensions/DonationInterface/gateway_forms/Form.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -abstract class PayflowProGateway_Form { |
| 4 | +abstract class Gateway_Form { |
5 | 5 | |
6 | 6 | /** |
7 | 7 | * Defines if we are in test mode |
— | — | @@ -277,7 +277,7 @@ |
278 | 278 | * @return string The entire HTML select element for the state dropdown list |
279 | 279 | */ |
280 | 280 | public function generateStateDropdown() { |
281 | | - require_once( dirname( __FILE__ ) . '/../includes/stateAbbreviations.inc' ); |
| 281 | + require_once( dirname( __FILE__ ) . '/includes/stateAbbreviations.inc' ); |
282 | 282 | |
283 | 283 | $states = statesMenuXML(); |
284 | 284 | |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoColumnLetter extends PayflowProGateway_Form_OneStepTwoColumn { |
| 4 | +class Gateway_Form_TwoColumnLetter extends Gateway_Form_OneStepTwoColumn { |
5 | 5 | public $paypal = false; // true for paypal only version |
6 | 6 | |
7 | 7 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnPremium.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnPremium extends PayflowProGateway_Form_TwoStepTwoColumn { |
| 4 | +class Gateway_Form_TwoStepTwoColumnPremium extends Gateway_Form_TwoStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgScriptPath; |
7 | 7 | |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumn.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumn extends PayflowProGateway_Form { |
| 4 | +class Gateway_Form_TwoStepTwoColumn extends Gateway_Form { |
5 | 5 | |
6 | 6 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
7 | 7 | global $wgOut; |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | global $wgOut; |
16 | 16 | $wgOut->addModules( 'pfp.form.core.placeholders' ); |
17 | 17 | } |
18 | | - |
| 18 | + |
19 | 19 | /** |
20 | 20 | * Required method for constructing the entire form |
21 | 21 | * |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter2.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnLetter2 extends PayflowProGateway_Form_TwoStepTwoColumnLetter { |
| 4 | +class Gateway_Form_TwoStepTwoColumnLetter2 extends Gateway_Form_TwoStepTwoColumnLetter { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgScriptPath; |
7 | 7 | |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnLetter3 extends PayflowProGateway_Form_TwoStepTwoColumn { |
| 4 | +class Gateway_Form_TwoStepTwoColumnLetter3 extends Gateway_Form_TwoStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgExtensionAssetsPath; |
7 | 7 | |
— | — | @@ -28,27 +28,27 @@ |
29 | 29 | if ( $( '#fname' ).val() == '') { |
30 | 30 | $( '#fname' ).css( 'color', '#999999' ); |
31 | 31 | $( '#fname' ).val( '$first' ); |
32 | | - } |
| 32 | + } |
33 | 33 | if ( $( '#lname' ).val() == '') { |
34 | 34 | $( '#lname' ).css( 'color', '#999999' ); |
35 | 35 | $( '#lname' ).val( '$last' ); |
36 | | - } |
| 36 | + } |
37 | 37 | if ( $( '#street' ).val() == '') { |
38 | 38 | $( '#street' ).css( 'color', '#999999' ); |
39 | 39 | $( '#street' ).val( '$street' ); |
40 | | - } |
| 40 | + } |
41 | 41 | if ( $( '#city' ).val() == '' ) { |
42 | 42 | $( '#city' ).css( 'color', '#999999' ); |
43 | 43 | $( '#city' ).val( '$city' ); |
44 | | - } |
| 44 | + } |
45 | 45 | if ( $( '#zip' ).val() =='') { |
46 | 46 | $( '#zip' ).css( 'color', '#999999' ); |
47 | 47 | $( '#zip' ).val( '$zip' ); |
48 | | - } |
| 48 | + } |
49 | 49 | if ( $( '#emailAdd' ).val() == '') { |
50 | 50 | $( '#emailAdd' ).css( 'color', '#999999' ); |
51 | 51 | $( '#emailAdd' ).val( '$email' ); |
52 | | - } |
| 52 | + } |
53 | 53 | }); |
54 | 54 | })(jQuery); |
55 | 55 | |
Index: trunk/extensions/DonationInterface/gateway_forms/RapidHtml.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_RapidHtml extends PayflowProGateway_Form { |
| 4 | +class Gateway_Form_RapidHtml extends Gateway_Form { |
5 | 5 | |
6 | 6 | /** |
7 | 7 | * Full path of HTML form to load |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | if ( $country != '' ){ |
90 | 90 | try{ |
91 | 91 | $country_based = $wgRequest->getText( 'ffname', 'default' ) . '-' . $country; |
92 | | - // set html-escaped filename. |
| 92 | + // set html-escaped filename. |
93 | 93 | $this->set_html_file_path( htmlspecialchars( $country_based )); |
94 | 94 | } catch ( MWException $mwe ) { |
95 | 95 | // country-specific file does not exist, set html-escaped filename. |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | // set html-escaped filename. |
100 | 100 | $this->set_html_file_path( htmlspecialchars( $wgRequest->getText( 'ffname', 'default' ))); |
101 | 101 | } |
102 | | - |
| 102 | + |
103 | 103 | // fix general form error messages so it's not an array of msgs |
104 | 104 | if ( is_array( $form_errors['general'] ) && count( $form_errors['general'] ) ) { |
105 | 105 | $general_errors = ""; |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | * This is a hack and should be replaced with something more performant. |
143 | 143 | */ |
144 | 144 | $form = $html; |
145 | | - |
| 145 | + |
146 | 146 | // handle form action |
147 | 147 | $form = str_replace( "@action", $this->getNoCacheAction(), $form ); |
148 | 148 | |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | } |
159 | 159 | $form = str_replace( $token, $replace, $form ); |
160 | 160 | } |
161 | | - |
| 161 | + |
162 | 162 | // @fixme why do some errors have HTML in them |
163 | 163 | // replace errors|escape with escaped versions |
164 | 164 | $escape_error_tokens = array(); |
— | — | @@ -269,7 +269,7 @@ |
270 | 270 | |
271 | 271 | $this->html_file_path = $allowedForms[$file_name]; |
272 | 272 | } |
273 | | - |
| 273 | + |
274 | 274 | /** |
275 | 275 | * Load API js if this form needs to support cacheing |
276 | 276 | */ |
— | — | @@ -277,6 +277,6 @@ |
278 | 278 | global $wgRequest; |
279 | 279 | if ( $wgRequest->getText( '_cache_', false )) { |
280 | 280 | $this->loadApiJs(); |
281 | | - } |
| 281 | +} |
282 | 282 | } |
283 | 283 | } |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnPremiumUS.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_TwoStepTwoColumnPremiumUS extends PayflowProGateway_Form_TwoStepTwoColumn { |
| 4 | +class Gateway_Form_TwoStepTwoColumnPremiumUS extends Gateway_Form_TwoStepTwoColumn { |
5 | 5 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |
6 | 6 | global $wgScriptPath; |
7 | 7 | |
Index: trunk/extensions/DonationInterface/gateway_forms/OneStepTwoColumn.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -class PayflowProGateway_Form_OneStepTwoColumn extends PayflowProGateway_Form { |
| 4 | +class Gateway_Form_OneStepTwoColumn extends Gateway_Form { |
5 | 5 | public $paypal = false; // true for paypal only version |
6 | 6 | |
7 | 7 | public function __construct( &$form_data, &$form_errors, &$gateway ) { |