ZenMagick 0.9.8


org.zenmagick.store.services.locale.ZMCurrencies
\store\services\locale\ZMCurrencies.php at line 34

Class ZMCurrencies

ZMObject
└─ZMCurrencies

public class ZMCurrencies
extends ZMObject

Currencies.

Author:
DerManoMann
Version:
$Id: ZMCurrencies.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.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.

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

Constructor Detail

\store\services\locale\ZMCurrencies.php at line 41

ZMCurrencies

public ZMCurrencies()

Create new instance.


Method Detail

\store\services\locale\ZMCurrencies.php at line 77

getCurrencies

public array getCurrencies()

Get all currencies.

Returns:
A list of ZMCurrency objects.

\store\services\locale\ZMCurrencies.php at line 85

getCurrencyForCode

public ZMCurrency getCurrencyForCode(string code)

Get the currency for the given code.

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

\store\services\locale\ZMCurrencies.php at line 56

instance

public static void instance()

Get instance.


\store\services\locale\ZMCurrencies.php at line 93

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.

ZenMagick 0.9.8