MediaWiki fundraising/REL1_35
Gateway_Extras Class Reference

An abstract class for gateway 'extras'. More...

Inheritance diagram for Gateway_Extras:
Collaboration diagram for Gateway_Extras:

Protected Member Functions

 __construct (GatewayType $gateway_adapter)
 
 compare_hash ( $hash, $data)
 Compare a hash to the hash of some given data.
 
 generate_hash ( $data)
 Generate a hash of some data.
 
 log ( $id='', $status='', $data='', $log_level=LogLevel::INFO)
 Writes message to the log.
 

Protected Attributes

GatewayType $gateway_adapter
 
Psr Log LoggerInterface $gateway_logger
 Sends messages to the standard gateway log.
 
Psr Log LoggerInterface $transaction_logger
 Sends messages to the blah_gateway_trxn log.
 

Detailed Description

An abstract class for gateway 'extras'.

Definition at line 7 of file extras.body.php.

Constructor & Destructor Documentation

◆ __construct()

Gateway_Extras::__construct ( GatewayType $gateway_adapter)
protected

Reimplemented in Gateway_Extras_CustomFilters, and FraudFilter.

Definition at line 26 of file extras.body.php.

References $gateway_adapter, and DonationLoggerFactory\getLogger().

Member Function Documentation

◆ compare_hash()

Gateway_Extras::compare_hash ( $hash,
$data )
protected

Compare a hash to the hash of some given data.

Parameters
string$hashA given hash
string$dataThe data to hash and compare to $hash
Returns
bool

Definition at line 70 of file extras.body.php.

References generate_hash().

Referenced by Gateway_Extras_CustomFilters_MinFraud\canBypassMinFraud().

◆ generate_hash()

Gateway_Extras::generate_hash ( $data)
protected

Generate a hash of some data.

Parameters
string$datathe data to hash
Returns
string The hash of the data

Definition at line 59 of file extras.body.php.

Referenced by Gateway_Extras_CustomFilters_MinFraud\canBypassMinFraud(), and compare_hash().

◆ log()

Gateway_Extras::log ( $id = '',
$status = '',
$data = '',
$log_level = LogLevel::INFO )
protected

Writes message to the log.

@fixme Do formatting with a Monolog formatter

Parameters
string$id
string$status
string$data
string$log_levelOne of the constants defined in
See also
\Psr\Log\LogLevel

Definition at line 41 of file extras.body.php.

Referenced by Gateway_Extras_CustomFilters_MinFraud\canBypassMinFraud(), Gateway_Extras_CustomFilters_Referrer\filter(), Gateway_Extras_CustomFilters_Source\filter(), and Gateway_Extras_ConversionLog\post_process().

Member Data Documentation

◆ $gateway_adapter

◆ $gateway_logger

Psr Log LoggerInterface Gateway_Extras::$gateway_logger
protected

Sends messages to the standard gateway log.

Definition at line 24 of file extras.body.php.

◆ $transaction_logger

Psr Log LoggerInterface Gateway_Extras::$transaction_logger
protected

Sends messages to the blah_gateway_trxn log.

Definition at line 18 of file extras.body.php.


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