MediaWiki fundraising/REL1_35
DonationInterface Class Reference

Static Public Member Functions

static getAdapterClassForGateway ( $gateway)
 
static onDonationInterfaceUnitTests (&$files)
 
static onGetMessagesFileName ( $code, &$file)
 Register es-419 as a language supported by this extension but not by MediaWiki core.
 
static onMediaWikiPHPUnitTeststartTest (TestCase $test)
 Implements MediaWikiPHPUnitTest::startTest hook.
 
static registerExtension ()
 Executed after processing extension.json.
 
static setSmashPigProvider ( $provider)
 Initialize SmashPig context and return configuration object.
 

Detailed Description

Definition at line 8 of file DonationInterface.class.php.

Member Function Documentation

◆ getAdapterClassForGateway()

static DonationInterface::getAdapterClassForGateway ( $gateway)
static

◆ onDonationInterfaceUnitTests()

static DonationInterface::onDonationInterfaceUnitTests ( & $files)
static

Definition at line 55 of file DonationInterface.class.php.

References $wgAutoloadClasses.

◆ onGetMessagesFileName()

static DonationInterface::onGetMessagesFileName ( $code,
& $file )
static

Register es-419 as a language supported by this extension but not by MediaWiki core.

Handles Language::onGetMessagesFileName hook called in LanguageNameUtils::getMessagesFileName

Parameters
string$codelanguage code
string&$filepath of Messages file as found by MediaWiki core

Definition at line 132 of file DonationInterface.class.php.

References $file.

◆ onMediaWikiPHPUnitTeststartTest()

static DonationInterface::onMediaWikiPHPUnitTeststartTest ( TestCase $test)
static

Implements MediaWikiPHPUnitTest::startTest hook.

Parameters
TestCase$test

Definition at line 89 of file DonationInterface.class.php.

◆ registerExtension()

static DonationInterface::registerExtension ( )
static

Executed after processing extension.json.

Definition at line 12 of file DonationInterface.class.php.

References $IP.

◆ setSmashPigProvider()

static DonationInterface::setSmashPigProvider ( $provider)
static

Initialize SmashPig context and return configuration object.

Parameters
string$provider
Returns
ProviderConfiguration

Definition at line 112 of file DonationInterface.class.php.

Referenced by GatewayPage\execute(), AmazonBillingApi\execute(), and DonationApiBase\setAdapterAndValidate().


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