ZMObject
└─ZMCurrencies
public class ZMCurrencies
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| array | 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. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public array getCurrencies()
Get all currencies.
ZMCurrency objects.public ZMCurrency getCurrencyForCode(string code)
Get the currency for the given code.
null.public static void instance()
Get instance.
public boolean isValid(string code)
Checks if a currency exists for the given code.
true if a currency exists for the given code, false if not.
Currencies.