ZenMagick 0.9.6


org.zenmagick.service.ZMCurrencies

Class ZMCurrencies

ZMObject
|
+--ZMCurrencies

public class ZMCurrencies
extends ZMObject

Currencies.

Author:
DerManoMann
Version:
$Id: ZMCurrencies.php 1966 2009-02-14 10:52:50Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMCurrencies()

Create new instance.

Method Summary
array

getCurrencies()

Get all currencies.

ZMCurrency

getCurrencyForCode(string code)

Get the currency for the given code.

static void

instance()

Get instance.

boolean

isValid(string code)

Checks if a currency exists for the given code.

private void

load()

Load all currencies.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMCurrencies

public ZMCurrencies()

Create new instance. /


Method Detail

getCurrencies

public array getCurrencies()

Get all currencies.

Returns:
A list of ZMCurrency objects.

getCurrencyForCode

public ZMCurrency getCurrencyForCode(string code)

Get the currency for the given code.

Parameters:
code - The currency code.
Returns:
A currency or null.

instance

public static void instance()

Get instance. /


isValid

public boolean isValid(string code)

Checks if a currency exists for the given code.

Parameters:
code - The currency code.
Returns:
true if a currency exists for the given code, false if not.

load

private void load()

Load all currencies. /


ZenMagick 0.9.6