REDIS_DBINDEX
REDIS_DBINDEX
apex |
tests |
PaymentInterface | Interface for an individual user's payment method that is assigned to their account. |
PaymentInterface | Interface for an individual user's payment method that is assigned to their account. |
exchange_money(float $amount,string $from_currency,string $to_currency): float
Exchange funds into another currency.
float | $amount | The amount to exchange |
string | $from_currency | The currency the amount is currently in |
string | $to_currency | The currency to exchange the funds into |
The resulting amount after exchange
fdate(string $date,boolean $add_time = false): string
Formats a date in proper readable format, and also converts timezone automatically as necessary.
string | $date | The date to format, in YYYY-MM-DD HH:II:SS |
boolean | $add_time | WHther or not to add the time to the outputed date. |
The resulting formatted date.
fexchange(float $amount,string $from_currency,string $to_currency): string
Exchange funds into another currency, and return the formatted value of resulting amount.
float | $amount | The amount to exchange |
string | $from_currency | The currency the amount is currently in |
string | $to_currency | The currency to exchange the funds into |
The resulting amount after exchange
fmoney(float $amount,string $currency = '',boolean $include_abbr = true): string
Format decimal into amount with correct currency
float | $amount | The decimal to format. |
string | $currency | The 3 character ISO currency to format to. |
boolean | $include_abbr | Whether or not to add the 3 character ISO currency abbreviation. |
The formatted amount.
tr(\iterable $args)
Translate text to user's language
Translate string.
Translates a string of text into the necessary language, depending on the user's profile preferences. Also supports placeholders (ie. %s), with the variables being passed as additional parameters in sequential order.
\iterable | $args | First element is the contents of the string / message, and rest of the params are the values of the placeholders. |