/sources/currency.php

Description
Functions
country_to_currency (line 40)

Convert a country code to a currency code.

  • return: The currency code.
ID_TEXT country_to_currency (ID_TEXT $country)
  • ID_TEXT $country: The country code.
currency_convert (line 64)

Perform a currency conversion.

  • return: The new amount as float, or if $string then as a string (NULL: failed to do it).
?mixed currency_convert (mixed $amount, ID_TEXT $from_currency, [?ID_TEXT $to_currency = NULL], [boolean $string = false])
  • mixed $amount: The starting amount (integer or float).
  • ID_TEXT $from_currency: The start currency code.
  • ?ID_TEXT $to_currency: The end currency code (NULL: unknown, guess it).
  • boolean $string: Whether to get as a string.
get_currency_map (line 172)

Get the currency map.

  • return: The currency map, country code, to an array of country codes.
array get_currency_map ()
ip_to_currency (line 27)

Convert an IP address to a currency code.

  • return: The currency code.
ID_TEXT ip_to_currency ([?IP $ip = NULL])
  • ?IP $ip: IP address (NULL: that of current member).

Documentation generated on Sun, 02 Jan 2011 23:12:42 +0000 by phpDocumentor 1.4.3