Zend_CurrencyClass for handling currency notations
Located in /Currency.php (line 37)
Zend_Currency
setValue
(float|integer|Zend_Currency $value, [string|Zend_Currency $currency = null])
array
$_options
= array(Options array
The following options are available 'position' => Position for the currency sign 'script' => Script for the output 'format' => Locale for numeric output 'display' => Currency detail to show 'precision' => Precision for the currency 'name' => Name for this currency 'currency' => 3 lettered international abbreviation 'symbol' => Currency symbol 'locale' => Locale for this currency 'value' => Money value 'service' => Exchange service to use
static clearCache (line 526)
Clears all set cache data
static hasCache (line 506)
Returns true when a cache is set
static removeCache (line 516)
Removes any set cache
static setCache (line 496)
Sets a cache for Zend_Currency
Constructor __construct (line 91)
Creates a currency instance. Every supressed parameter is used from the actual or the given locale.
add (line 604)
Adds a currency
compare (line 674)
Compares two currencies
div (line 632)
Divides a currency
equals (line 694)
Returns true when the two currencies are equal
getCurrencyList (line 448)
Returns a list of currencies which are used in this region a region name should be 2 charachters only (f.e. EG, DE, US) If no region is given, the actual region is used
getLocale (line 569)
Returns the actual set locale
getName (line 395)
Returns the actual or details of other currency names
getRegionList (line 423)
Returns a list of regions where this currency is or was known
getService (line 775)
Returns the set service class
getShortName (line 360)
Returns the actual or details of other currency shortnames
getSymbol (line 332)
Returns the actual or details of other currency symbols, when no symbol is available it returns the currency shortname (f.e. FIM for Finnian Mark)
getValue (line 579)
Returns the value
isLess (line 728)
Returns true when the currency is less than the given value
isMore (line 711)
Returns true when the currency is more than the given value
mod (line 660)
Calculates the modulo from a currency
mul (line 646)
Multiplies a currency
setFormat (line 281)
Sets the formating options of the localized currency string If no parameter is passed, the standard setting of the actual set locale will be used
setLocale (line 540)
Sets a new locale for data retreivement Example: 'de_XX' will be set to 'de' because 'de_XX' does not exist 'xx_YY' will be set to 'root' because 'xx' does not exist
setService (line 786)
Sets a new exchange service
setValue (line 591)
Adds a currency
sub (line 618)
Substracts a currency
toCurrency (line 137)
Returns a localized currency string
toString (line 464)
Returns the actual currency name
_checkOptions (line 821)
Internal method for checking the options array
_exchangeCurrency (line 746)
Internal method which calculates the exchanges currency
__toString (line 474)
Returns the currency name
Documentation generated on Mon, 21 Jun 2010 15:14:58 -0400 by phpDocumentor 1.4.3