MediaWiki fundraising/REL1_35
DonorEmail.php
Go to the documentation of this file.
1<?php
2
3class DonorEmail implements StagingHelper {
4 public function stage( GatewayType $adapter, $normalized, &$stagedData ) {
5 if ( empty( $stagedData['email'] ) ) {
6 $stagedData['email'] = $adapter->getGlobal( 'DefaultEmail' );
7 }
8 }
9}
stage(GatewayType $adapter, $normalized, &$stagedData)
Transform a subset of normalized data into the "staged" data expected by a payment processor.
Definition DonorEmail.php:4
GatewayType Interface.
static getGlobal( $varname)
This function is important.
Used to mark any class which implements an staging method, for transforming data into the form expect...