MediaWiki fundraising/REL1_35
ResultPages Class Reference

Static Public Member Functions

static getCancelPage (GatewayType $adapter)
 Get the URL for a page to show donors who cancel their attempt.
 
static getThankYouPage (GatewayType $adapter, $extraParams=[])
 Get the URL for a page to show donors after a successful donation, with the country code appended as a query string variable.
 

Static Protected Member Functions

static appendLanguageAndMakeURL ( $url, $language)
 For pages we intend to redirect to.
 

Detailed Description

Definition at line 3 of file ResultPages.php.

Member Function Documentation

◆ appendLanguageAndMakeURL()

static ResultPages::appendLanguageAndMakeURL ( $url,
$language )
staticprotected

For pages we intend to redirect to.

This function will take either a full URL or a page title, and turn it into a URL with the appropriate language appended onto the end.

Parameters
string$urlEither a wiki page title, or a URL to an external wiki page title.
string$language
Returns
string localized full URL

Definition at line 48 of file ResultPages.php.

References PROTO_CURRENT.

Referenced by getCancelPage(), and getThankYouPage().

◆ getCancelPage()

static ResultPages::getCancelPage ( GatewayType $adapter)
static

Get the URL for a page to show donors who cancel their attempt.

Parameters
GatewayType$adapterinstance to use for logger and settings
Returns
string full URL of the cancel page

Definition at line 28 of file ResultPages.php.

References appendLanguageAndMakeURL(), GatewayType\getData_Unstaged_Escaped(), and GatewayType\getGlobal().

Referenced by PaypalExpressAdapter\defineTransactions().

◆ getThankYouPage()

static ResultPages::getThankYouPage ( GatewayType $adapter,
$extraParams = [] )
static

Get the URL for a page to show donors after a successful donation, with the country code appended as a query string variable.

Parameters
GatewayType$adapter
array$extraParamsany extra parameters to add to the URL
Returns
string full URL of the thank you page

Definition at line 11 of file ResultPages.php.

References appendLanguageAndMakeURL(), GatewayType\getData_Unstaged_Escaped(), and wfAppendQuery().

Referenced by ResultSwitcher\displayThankYouPage(), AmazonBillingApi\execute(), GatewayPage\renderResponse(), AdyenCheckoutGateway\setClientVariables(), BraintreeGateway\setClientVariables(), DlocalGateway\setClientVariables(), GatewayPage\setClientVariables(), and IngenicoReturntoHelper\stage().


The documentation for this class was generated from the following file: