r101550 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101549‎ | r101550 | r101551 >
Date:23:47, 1 November 2011
Author:jpostlethwaite
Status:ok (Comments)
Tags:fundraising 
Comment:
Adding fields for Direct Debit
Modified paths:
  • /trunk/extensions/DonationInterface/gateway_common/DonationData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/gateway_common/DonationData.php
@@ -84,6 +84,19 @@
8585 'gateway' => $wgRequest->getText( 'gateway' ), //likely to be reset shortly by setGateway();
8686 'owa_session' => $wgRequest->getText( 'owa_session', null ),
8787 'owa_ref' => $wgRequest->getText( 'owa_ref', null ),
 88+
 89+ 'account_name' => $wgRequest->getText( 'account_name', null ),
 90+ 'account_number' => $wgRequest->getText( 'account_number', null ),
 91+ 'authorization_id' => $wgRequest->getText( 'authorization_id', null ),
 92+ 'bank_check_digit' => $wgRequest->getText( 'bank_check_digit', null ),
 93+ 'bank_name' => $wgRequest->getText( 'bank_name', null ),
 94+ 'bank_code' => $wgRequest->getText( 'bank_code', null ),
 95+ 'branch_code' => $wgRequest->getText( 'branch_code', null ),
 96+ 'country_code_bank' => $wgRequest->getText( 'country_code_bank', null ),
 97+ 'date_collect' => $wgRequest->getText( 'date_collect', null ),
 98+ 'direct_debit_text' => $wgRequest->getText( 'direct_debit_text', null ),
 99+ 'iban' => $wgRequest->getText( 'iban', null ),
 100+ 'transaction_type' => $wgRequest->getText( 'transaction_type', null ),
88101 );
89102 if ( !$wgRequest->wasPosted() ) {
90103 $this->setVal( 'posted', false );

Comments

#Comment by Awjrichards (talk | contribs)   22:46, 4 November 2011
+				'transaction_type' => $wgRequest->getText( 'transaction_type', null ),

If you want the default value to be 'null', just use getVal(). getText defaults to automagically.

Status & tagging log