MediaWiki fundraising/REL1_35
|
Public Member Functions | |
__construct () | |
stage (GatewayType $adapter, $normalized, &$stagedData) | |
Transform a subset of normalized data into the "staged" data expected by a payment processor. | |
transliterate ( $value) | |
Forces string into ISO-8859-1 space. | |
Protected Attributes | |
$transliterator | |
$use_transliterator = false | |
Wikimedia Foundation.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Forces the languages of the world to fit into a teensy little codespace so we can send them in ISO-8859-1 encoding. Uses Transliterator if available to turn non-latin characters into something meaningful. If not available, iconv will just replace em with question marks
Definition at line 25 of file EncodingMangler.php.
EncodingMangler::__construct | ( | ) |
Definition at line 29 of file EncodingMangler.php.
EncodingMangler::stage | ( | GatewayType | $adapter, |
$normalized, | |||
& | $stagedData ) |
Transform a subset of normalized data into the "staged" data expected by a payment processor.
GatewayType | $adapter | |
array | $normalized | Donation data in normalized form. |
array | &$stagedData | Reference to output data. |
Implements StagingHelper.
Definition at line 38 of file EncodingMangler.php.
References transliterate().
EncodingMangler::transliterate | ( | $value | ) |
Forces string into ISO-8859-1 space.
string | $value | UTF-8 |
Definition at line 50 of file EncodingMangler.php.
Referenced by stage().
|
protected |
Definition at line 27 of file EncodingMangler.php.
|
protected |
Definition at line 26 of file EncodingMangler.php.