ZenMagick 0.9.10


zenmagick.store.shared.services.locale\ZMCurrencies
services\locale\ZMCurrencies.php at line 33

Class ZMCurrencies

ZMObject
└─ZMCurrencies

public class ZMCurrencies
extends ZMObject

Currencies.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

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
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

services\locale\ZMCurrencies.php at line 40

__construct

public void __construct()

Create new instance.


services\locale\ZMCurrencies.php at line 76

getCurrencies

public array getCurrencies()

Get all currencies.

Returns:
A list of ZMCurrency objects.

services\locale\ZMCurrencies.php at line 84

getCurrencyForCode

public ZMCurrency getCurrencyForCode(string code)

Get the currency for the given code.

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

services\locale\ZMCurrencies.php at line 55

instance

public static void instance()

Get instance.


services\locale\ZMCurrencies.php at line 92

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.10